mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 05:25:08 +00:00
fix(Core/Creature): crash on creature evade (#9305)
This commit is contained in:
@@ -2269,7 +2269,7 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction /
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// pussywizard: or if enemy is in evade mode
|
// 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;
|
return false;
|
||||||
|
|
||||||
// we don't need help from non-combatant ;)
|
// we don't need help from non-combatant ;)
|
||||||
|
|||||||
Reference in New Issue
Block a user