mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +00:00
fix(Scripts/OS): clear Twilight Torment on encounter end (#25697)
This commit is contained in:
@@ -416,6 +416,9 @@ struct boss_sartharion : public BossAI
|
|||||||
for (uint32 i : dragons)
|
for (uint32 i : dragons)
|
||||||
if (Creature* boss = instance->GetCreature(i))
|
if (Creature* boss = instance->GetCreature(i))
|
||||||
boss->DespawnOrUnsummon();
|
boss->DespawnOrUnsummon();
|
||||||
|
|
||||||
|
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_TWILIGHT_TORMENT_VESPERON);
|
||||||
|
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_TWILIGHT_TORMENT_SARTHARION);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetData(uint32 type, uint32 data) override
|
void SetData(uint32 type, uint32 data) override
|
||||||
@@ -838,6 +841,8 @@ struct boss_sartharion_dragonAI : public BossAI
|
|||||||
{
|
{
|
||||||
Talk(SAY_VESPERON_DEATH);
|
Talk(SAY_VESPERON_DEATH);
|
||||||
instance->DoAction(ACTION_CLEAR_PORTAL);
|
instance->DoAction(ACTION_CLEAR_PORTAL);
|
||||||
|
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_TWILIGHT_TORMENT_VESPERON);
|
||||||
|
instance->DoRemoveAurasDueToSpellOnPlayers(SPELL_TWILIGHT_TORMENT_SARTHARION);
|
||||||
if (!isCalledBySartharion || instance->GetBossState(DATA_SARTHARION) != IN_PROGRESS)
|
if (!isCalledBySartharion || instance->GetBossState(DATA_SARTHARION) != IN_PROGRESS)
|
||||||
instance->SetBossState(DATA_VESPERON, DONE);
|
instance->SetBossState(DATA_VESPERON, DONE);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user