diff options
author | megamage <none@none> | 2009-08-31 13:56:26 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-31 13:56:26 -0500 |
commit | ad1acedea73a37a7b3cee07c0088fc40ae8c5f43 (patch) | |
tree | 4171521ebbc5840c0ce2e3741a7b34b0c72507c2 /src/game/CreatureAI.cpp | |
parent | a4f6659f7a483a73dbc3d5d78748ffe7a077dad7 (diff) |
*Use updatecombatstate to replace updatevictim. This should fix the bug of MoveSeekAssistance is replace by MoveChase immediately. Thanks to totoro
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r-- | src/game/CreatureAI.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index 53d9286fba7..a3a903c23a6 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -125,26 +125,6 @@ void CreatureAI::SelectNearestTarget(Unit *who) } } -bool CreatureAI::UpdateCombatState() -{ - if(!me->isInCombat()) - return false; - - if(!me->HasReactState(REACT_PASSIVE)) - { - if(Unit *victim = me->SelectVictim()) - AttackStart(victim); - return me->getVictim(); - } - else if(me->getThreatManager().isThreatListEmpty()) - { - EnterEvadeMode(); - return false; - } - - return true; -} - void CreatureAI::EnterEvadeMode() { if(!_EnterEvadeMode()) |