fix(Core/Scripts): Prevents Crystalline Frayer from staying in combat (#26561)

This commit is contained in:
Alexis LOUBIÈRE
2026-07-18 19:03:52 +02:00
committed by GitHub
parent 495f219a5b
commit c6dc7f8f23
@@ -207,6 +207,7 @@ struct npc_crystalline_frayer : public ScriptedAI
{ {
_allowDeath = false; _allowDeath = false;
_inSeedPod = false; _inSeedPod = false;
me->SetIsCombatDisallowed(false);
_scheduler.CancelAll(); _scheduler.CancelAll();
me->RemoveAllAuras(); me->RemoveAllAuras();
@@ -256,6 +257,7 @@ struct npc_crystalline_frayer : public ScriptedAI
void EnterSeedPod() void EnterSeedPod()
{ {
_inSeedPod = true; _inSeedPod = true;
me->SetIsCombatDisallowed(true);
_scheduler.CancelGroup(GROUP_COMBAT); _scheduler.CancelGroup(GROUP_COMBAT);
me->AttackStop(); me->AttackStop();
@@ -283,6 +285,7 @@ struct npc_crystalline_frayer : public ScriptedAI
void LeaveSeedPod() void LeaveSeedPod()
{ {
_inSeedPod = false; _inSeedPod = false;
me->SetIsCombatDisallowed(false);
Talk(SAY_EMOTE); Talk(SAY_EMOTE);