mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
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;
|
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user