mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/AI: prevent launching a new MoveChase if victim didn't change
Thanks ccrs for feedback :P
This commit is contained in:
@@ -240,7 +240,7 @@ bool CreatureAI::UpdateVictim()
|
||||
if (!me->HasReactState(REACT_PASSIVE))
|
||||
{
|
||||
if (Unit* victim = me->SelectVictim())
|
||||
if (!me->IsFocusing(nullptr, true))
|
||||
if (!me->IsFocusing(nullptr, true) && victim != me->GetVictim())
|
||||
AttackStart(victim);
|
||||
|
||||
return me->GetVictim() != nullptr;
|
||||
|
||||
Reference in New Issue
Block a user