mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(scripts/CullingOfStratholme): Remove "Corrupting Blight" at Infinite Corruptor's death (#4011)
This commit is contained in:
@@ -74,10 +74,13 @@ public:
|
|||||||
{
|
{
|
||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
|
for (SummonList::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
|
||||||
|
{
|
||||||
if (Creature* cr = ObjectAccessor::GetCreature(*me, (*itr)))
|
if (Creature* cr = ObjectAccessor::GetCreature(*me, (*itr)))
|
||||||
{
|
{
|
||||||
if (cr->GetEntry() == NPC_TIME_RIFT)
|
if (cr->GetEntry() == NPC_TIME_RIFT)
|
||||||
|
{
|
||||||
cr->DespawnOrUnsummon(1000);
|
cr->DespawnOrUnsummon(1000);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cr->DespawnOrUnsummon(5000);
|
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);
|
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())
|
if (InstanceScript* pInstance = me->GetInstanceScript())
|
||||||
|
{
|
||||||
pInstance->SetData(DATA_SHOW_INFINITE_TIMER, 0);
|
pInstance->SetData(DATA_SHOW_INFINITE_TIMER, 0);
|
||||||
|
pInstance->DoRemoveAurasDueToSpellOnPlayers(SPELL_CORRUPTING_BLIGHT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoAction(int32 param) override
|
void DoAction(int32 param) override
|
||||||
|
|||||||
Reference in New Issue
Block a user