fix(Core/AI): keep charmed creature victim set by charmer (#25552)
This commit is contained in:
parent
72591ee841
commit
092fc7cc9e
1 changed files with 4 additions and 0 deletions
|
|
@ -358,6 +358,10 @@ bool CreatureAI::UpdateVictim()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Charmed creatures: the charmer controls target selection, don't interfere
|
||||||
|
if (me->IsCharmed())
|
||||||
|
return me->GetVictim() != nullptr;
|
||||||
|
|
||||||
if (!me->HasReactState(REACT_PASSIVE))
|
if (!me->HasReactState(REACT_PASSIVE))
|
||||||
{
|
{
|
||||||
if (Unit* victim = me->SelectVictim())
|
if (Unit* victim = me->SelectVictim())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue