[Bot initialization] Neck level check

This commit is contained in:
Yunfan Li
2024-06-23 11:04:38 +08:00
parent 4636b6e5b6
commit 7ecd161310

View File

@@ -1486,6 +1486,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
if (slot == EQUIPMENT_SLOT_TABARD || slot == EQUIPMENT_SLOT_BODY)
continue;
if (slot == EQUIPMENT_SLOT_NECK && level < 40)
continue;
std::vector<uint32>& ids = items[slot];
if (ids.empty())
{