diff options
author | megamage <none@none> | 2009-08-20 16:12:23 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-20 16:12:23 -0500 |
commit | 2d4dac07113c6620b6fa8f6d8d0648cbb18ccdcd (patch) | |
tree | 8fe1835871ffbc3719c35b7be4029ebd6d26486c /src/game/CreatureEventAI.cpp | |
parent | 5f04f0c1f02ae3029ff9db47b242071774cb7c15 (diff) |
*Try to fix the bug of mobs' chain aggro.
--HG--
branch : trunk
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) |