forked from mirror/azerothcore-wotlk
fix(Core/AI): keep charmed creature victim set by charmer (#25552)
This commit is contained in:
@@ -358,6 +358,10 @@ bool CreatureAI::UpdateVictim()
|
||||
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 (Unit* victim = me->SelectVictim())
|
||||
|
||||
Reference in New Issue
Block a user