diff options
author | maximius <none@none> | 2009-10-10 16:26:00 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-10 16:26:00 -0700 |
commit | 8ea2639b627a382ee3db4fc5701d95eb7907f7ce (patch) | |
tree | 9d4aa178eb5dd03dc21a2b02651b9be655f19d55 /src/game/CreatureAIImpl.h | |
parent | 566472918bd658aa0a5352ca5cc462a3ca222d54 (diff) |
*Creature::_IsTargetAcceptable rewrite, should hopefully fix the bugs ogeraisi reported.
*Creature health regen patch, written and tested by Gyullo.
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureAIImpl.h')
-rw-r--r-- | src/game/CreatureAIImpl.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/game/CreatureAIImpl.h b/src/game/CreatureAIImpl.h index be11a35095b..89d5bbc2a9e 100644 --- a/src/game/CreatureAIImpl.h +++ b/src/game/CreatureAIImpl.h @@ -488,7 +488,7 @@ inline void CreatureAI::SetGazeOn(Unit *target) if(me->canAttack(target)) { AttackStart(target); - me->SetReactState(REACT_AGGRESSIVE); + me->SetReactState(REACT_PASSIVE); } } @@ -524,7 +524,6 @@ inline bool CreatureAI::UpdateCombatState() else if(me->getThreatManager().isThreatListEmpty()) { EnterEvadeMode(); - me->SetReactState(REACT_PASSIVE); return false; } @@ -545,7 +544,6 @@ inline bool CreatureAI::UpdateVictim() else if(me->getThreatManager().isThreatListEmpty()) { EnterEvadeMode(); - me->SetReactState(REACT_PASSIVE); return false; } @@ -569,18 +567,16 @@ inline bool CreatureAI::_EnterEvadeMode() return false; // sometimes bosses stuck in combat? + me->RemoveAllAuras(); me->DeleteThreatList(); me->CombatStop(true); + me->LoadCreaturesAddon(); + me->SetLootRecipient(NULL); me->ResetPlayerDamageReq(); - + if(me->IsInEvadeMode()) return false; - me->RemoveAllAuras(); - me->LoadCreaturesAddon(); - me->SetLootRecipient(NULL); - me->SetReactState(REACT_AGGRESSIVE); - return true; } |