fix(Core/Scripts): Prevents Crystalline Frayer from staying in combat (#26561)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user