diff options
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r-- | src/game/CreatureEventAI.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 5c425217844..78a8689a6de 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -998,12 +998,7 @@ void CreatureEventAI::MoveInLineOfSight(Unit *who) } } - if(me->canStartAttack(who, false)) - AttackStart(who); - else if(who->getVictim() && me->IsFriendlyTo(who) - && me->IsWithinDistInMap(who, sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS)) - && me->canStartAttack(who->getVictim(), true)) - AttackStart(who->getVictim()); + CreatureAI::MoveInLineOfSight(who); } void CreatureEventAI::SpellHit(Unit* pUnit, const SpellEntry* pSpell) |