From 017e36333e2f081f0e5e4ae99c9dfe3f0f413c91 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 10 Aug 2024 02:33:15 +0800 Subject: [PATCH] Deathnight enchant check --- src/factory/PlayerbotFactory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 3ecc46d2..5af68d03 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -3721,6 +3721,9 @@ void PlayerbotFactory::ApplyEnchantAndGemsNew(bool destoryOld) { continue; } + + if (spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && bot->getClass() != CLASS_DEATH_KNIGHT) + continue; uint32 requiredLevel = spellInfo->BaseLevel; if (requiredLevel > bot->GetLevel())