More glyph config and level check

This commit is contained in:
Yunfan Li
2024-04-08 21:04:49 +08:00
parent c2aa95970d
commit 3700ee3a12
2 changed files with 45 additions and 4 deletions

View File

@@ -2882,7 +2882,10 @@ void PlayerbotFactory::InitGlyphs(bool increment)
if ((proto->AllowableClass & bot->getClassMask()) == 0 || (proto->AllowableRace & bot->getRaceMask()) == 0)
continue;
if (proto->RequiredLevel > bot->GetLevel())
continue;
uint32 glyph = 0;
for (uint32 spell = 0; spell < MAX_ITEM_PROTO_SPELLS; spell++)
{