diff options
author | megamage <none@none> | 2009-06-09 19:55:15 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-09 19:55:15 -0500 |
commit | 853432b201c6ae5b14c9cae445bb254a4795b4e5 (patch) | |
tree | 8c90729c1965ea80196165233a17ecc13f1fc4ba /src/game/CreatureAI.cpp | |
parent | 4167ca4f840941b949fd318e4158ecf3cc268647 (diff) |
*Fix a bug that creature ignore LOS in assistance case.
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r-- | src/game/CreatureAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index 143dfec99d3..1c3179b2e23 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -100,11 +100,11 @@ void CreatureAI::MoveInLineOfSight(Unit *who) if(me->getVictim()) return; - if(me->canStartAttack(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->canAttack(who->getVictim())) + && me->canStartAttack(who->getVictim(), true)) AttackStart(who->getVictim()); } |