Deathnight enchant check

This commit is contained in:
Yunfan Li
2024-08-10 02:33:15 +08:00
parent 2a2d07b59a
commit 017e36333e

View File

@@ -3722,6 +3722,9 @@ void PlayerbotFactory::ApplyEnchantAndGemsNew(bool destoryOld)
continue; continue;
} }
if (spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && bot->getClass() != CLASS_DEATH_KNIGHT)
continue;
uint32 requiredLevel = spellInfo->BaseLevel; uint32 requiredLevel = spellInfo->BaseLevel;
if (requiredLevel > bot->GetLevel()) if (requiredLevel > bot->GetLevel())
{ {