druid caster form

This commit is contained in:
Yunfan Li
2023-09-05 22:11:04 +08:00
parent e69eccf071
commit 9ad8274fe8
5 changed files with 20 additions and 10 deletions

View File

@@ -1188,6 +1188,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
for (uint32 requiredLevel = bot->GetLevel(); requiredLevel > std::max((int32)bot->GetLevel() - delta, 0); requiredLevel--) {
for (InventoryType inventoryType : GetPossibleInventoryTypeListBySlot((EquipmentSlots)slot)) {
for (uint32 itemId : sRandomItemMgr->GetCachedEquipments(requiredLevel, inventoryType)) {
if (itemId == 46978) { // shaman earth ring totem
continue;
}
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(itemId);
if (!proto)
continue;