fix(Core/AI): Prevent guardians from switching targets on owner combat interaction (#25190)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
parent
9c05983b2a
commit
fa9f28309b
1 changed files with 4 additions and 0 deletions
|
|
@ -198,6 +198,10 @@ void CreatureAI::OnOwnerCombatInteraction(Unit* target)
|
|||
if (!target || !me->IsAlive())
|
||||
return;
|
||||
|
||||
// Prevent guardian from disengaging from current target
|
||||
if (me->GetVictim() && me->GetVictim()->IsAlive())
|
||||
return;
|
||||
|
||||
if (!me->HasReactState(REACT_PASSIVE) && me->CanStartAttack(target, true))
|
||||
AttackStart(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue