aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-08-03 17:45:06 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-18 00:25:14 +0100
commitbe4ed9152c1a9c3dab9949eb36d867b763603f60 (patch)
tree72d320d869b1a8749b28812100d02a820a542b85 /src/server/game/AI/CreatureAI.cpp
parentd2a3bae8627b5577c9372d0a549fb1d2fe2cb594 (diff)
Core/Unit: rename IsFocusing method
Workaround prework till actual facing system rework arrives (cherry picked from commit ec9f15a5fff7830bf2aebc517654784a6d54bb74)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index bb16389c932..8f09c34fbc8 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -256,7 +256,7 @@ bool CreatureAI::UpdateVictim()
if (!me->HasReactState(REACT_PASSIVE))
{
if (Unit* victim = me->SelectVictim())
- if (!me->IsFocusing(nullptr, true) && victim != me->GetVictim())
+ if (!me->HandleSpellFocus(nullptr, true) && victim != me->GetVictim())
AttackStart(victim);
return me->GetVictim() != nullptr;