Fix: Updated to work with newer commits of AzerothCore

This commit is contained in:
Revision
2024-07-22 00:39:06 +02:00
parent fedb6084e2
commit 838bfe333d
48 changed files with 241 additions and 239 deletions

View File

@@ -36,10 +36,10 @@ std::vector<uint32> WorldBuffAction::NeedWorldBuffs(Unit* unit)
if (wb.classId != 0 && wb.classId != unit->getClass())
continue;
if (wb.minLevel != 0 && wb.minLevel > unit->getLevel())
if (wb.minLevel != 0 && wb.minLevel > unit->GetLevel())
continue;
if (wb.maxLevel != 0 && wb.maxLevel < unit->getLevel())
if (wb.maxLevel != 0 && wb.maxLevel < unit->GetLevel())
continue;
if (unit->HasAura(wb.spellId))