mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Scripts/BlackTemple): Call evade for Council creature when members evade. (#19808)
Init.
This commit is contained in:
@@ -232,7 +232,12 @@ struct boss_illidari_council_memberAI : public ScriptedAI
|
||||
|
||||
void EnterEvadeMode(EvadeReason why) override
|
||||
{
|
||||
me->SetOwnerGUID(ObjectGuid::Empty);
|
||||
if (Unit* council = me->GetOwner())
|
||||
{
|
||||
me->SetOwnerGUID(ObjectGuid::Empty); // Set owner here to avoid infinite loop of evade calls
|
||||
if (council->ToCreature()->AI())
|
||||
council->ToCreature()->AI()->EnterEvadeMode(why);
|
||||
}
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user