Skip to content

Instantly share code, notes, and snippets.

@zabustak
Created March 19, 2014 22:59
Show Gist options
  • Save zabustak/9653280 to your computer and use it in GitHub Desktop.
Save zabustak/9653280 to your computer and use it in GitHub Desktop.
ee60facee932117435260ff2d4a1e05c65d65b4b
.../scripts/Northrend/IcecrownCitadel/boss_festergut.cpp | 13 +++++++++++++
.../scripts/Northrend/IcecrownCitadel/boss_rotface.cpp | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
index 884baaf..5d02f62 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
@@ -132,6 +132,19 @@ class boss_festergut : public CreatureScript
void JustDied(Unit* /*killer*/) OVERRIDE
{
+ Map::PlayerList const& players = instance->instance->GetPlayers();
+ if (!players.isEmpty())
+ {
+ for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
+ {
+ if (Player* player = itr->GetSource())
+ if ((player->GetQuestStatus(QUEST_RESIDUE_RENDEZVOUS_10) == QUEST_STATUS_INCOMPLETE) || (player->GetQuestStatus(QUEST_RESIDUE_RENDEZVOUS_25) == QUEST_STATUS_INCOMPLETE))
+ player->CastSpell(player, SPELL_ORANGE_BLIGHT_RESIDUE, true);
+ else
+ continue;
+ }
+ }
+
_JustDied();
Talk(SAY_DEATH);
if (Creature* professor = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_PROFESSOR_PUTRICIDE)))
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
index e3c21c6..a191a3f 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
@@ -135,6 +135,19 @@ class boss_rotface : public CreatureScript
void JustDied(Unit* /*killer*/) OVERRIDE
{
+ Map::PlayerList const& players = instance->instance->GetPlayers();
+ if (!players.isEmpty())
+ {
+ for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
+ {
+ if (Player* player = itr->GetSource())
+ if ((player->GetQuestStatus(QUEST_RESIDUE_RENDEZVOUS_10) == QUEST_STATUS_INCOMPLETE) || (player->GetQuestStatus(QUEST_RESIDUE_RENDEZVOUS_25) == QUEST_STATUS_INCOMPLETE))
+ player->CastSpell(player, SPELL_GREEN_BLIGHT_RESIDUE, true);
+ else
+ continue;
+ }
+ }
+
instance->DoRemoveAurasDueToSpellOnPlayers(MUTATED_INFECTION);
_JustDied();
Talk(SAY_DEATH);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment