diff options
author | Treeston <treeston.mmoc@gmail.com> | 2019-08-04 01:26:20 +0200 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2019-08-04 01:26:20 +0200 |
commit | 4a219eda07c353139608065f7d0a016094ee4ce0 (patch) | |
tree | 50d6c0922d36e4e9280a49e6bc0e6ee7c8bd3c9e /src/server/game/AI/CreatureAI.cpp | |
parent | 6a330214a112460f4e492135e76f1277328af406 (diff) |
Core/Unit: Spell focusing now no longer nonsensical. HasSpellFocus always const. Error logs for various stuff.
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index c03d848275d..f084fe547d5 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -249,7 +249,7 @@ bool CreatureAI::UpdateVictim() if (!me->HasReactState(REACT_PASSIVE)) { if (Unit* victim = me->SelectVictim()) - if (!me->HandleSpellFocus(nullptr, true) && victim != me->GetVictim()) + if (!me->HasSpellFocus() && victim != me->GetVictim()) AttackStart(victim); return me->GetVictim() != nullptr; @@ -308,7 +308,7 @@ bool CreatureAI::_EnterEvadeMode(EvadeReason /*why*/) me->ResetPlayerDamageReq(); me->SetLastDamagedTime(0); me->SetCannotReachTarget(false); - me->DoNotReacquireTarget(); + me->DoNotReacquireSpellFocusTarget(); EngagementOver(); return true; |