mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 13:57:52 +00:00
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;
|
||||
_inSeedPod = false;
|
||||
me->SetIsCombatDisallowed(false);
|
||||
_scheduler.CancelAll();
|
||||
|
||||
me->RemoveAllAuras();
|
||||
@@ -256,6 +257,7 @@ struct npc_crystalline_frayer : public ScriptedAI
|
||||
void EnterSeedPod()
|
||||
{
|
||||
_inSeedPod = true;
|
||||
me->SetIsCombatDisallowed(true);
|
||||
_scheduler.CancelGroup(GROUP_COMBAT);
|
||||
|
||||
me->AttackStop();
|
||||
@@ -283,6 +285,7 @@ struct npc_crystalline_frayer : public ScriptedAI
|
||||
void LeaveSeedPod()
|
||||
{
|
||||
_inSeedPod = false;
|
||||
me->SetIsCombatDisallowed(false);
|
||||
|
||||
Talk(SAY_EMOTE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user