mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Avoid aoe] Fix crash
This commit is contained in:
@@ -1595,7 +1595,7 @@ bool AvoidAoeAction::AvoidGameObjectWithDamage()
|
||||
continue;
|
||||
}
|
||||
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
if (spellInfo->IsPositive()) {
|
||||
if (!spellInfo || spellInfo->IsPositive()) {
|
||||
continue;
|
||||
}
|
||||
float radius = (float)goInfo->trap.diameter / 2;
|
||||
|
||||
Reference in New Issue
Block a user