fix(scripts/CullingOfStratholme): Remove "Corrupting Blight" at Infinite Corruptor's death (#4011)

This commit is contained in:
Silker
2020-12-19 22:07:54 -06:00
committed by GitHub
parent 26bf415ce0
commit b6ec66eebd

View File

@@ -74,10 +74,13 @@ public:
{
Talk(SAY_DEATH);
for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
{
if (Creature* cr = ObjectAccessor::GetCreature(*me, (*itr)))
{
if (cr->GetEntry() == NPC_TIME_RIFT)
{
cr->DespawnOrUnsummon(1000);
}
else
{
cr->DespawnOrUnsummon(5000);
@@ -85,9 +88,13 @@ public:
cr->MonsterSay("You have my thanks for saving my existence in this timeline. Now i must report back to my superiors. They must know immediately of what i just experienced.", LANG_UNIVERSAL, 0);
}
}
}
if (InstanceScript* pInstance = me->GetInstanceScript())
{
pInstance->SetData(DATA_SHOW_INFINITE_TIMER, 0);
pInstance->DoRemoveAurasDueToSpellOnPlayers(SPELL_CORRUPTING_BLIGHT);
}
}
void DoAction(int32 param) override