fix(Core/Creature): crash on creature evade (#9305)
This commit is contained in:
parent
0be4513dff
commit
fc16abc30e
1 changed files with 1 additions and 1 deletions
|
|
@ -2269,7 +2269,7 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
|
|||
return false;
|
||||
|
||||
// pussywizard: or if enemy is in evade mode
|
||||
if (enemy->GetTypeId() == TYPEID_UNIT && enemy->ToCreature()->IsInEvadeMode())
|
||||
if (enemy && enemy->GetTypeId() == TYPEID_UNIT && enemy->ToCreature()->IsInEvadeMode())
|
||||
return false;
|
||||
|
||||
// we don't need help from non-combatant ;)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue