Created
April 11, 2013 18:24
-
-
Save eilo/5365890 to your computer and use it in GitHub Desktop.
full house lady deathwhisper workaround
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp | |
index d8218aa..6deef8a 100755 | |
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp | |
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_lady_deathwhisper.cpp | |
@@ -153,6 +153,11 @@ enum EventTypes | |
EVENT_DARNAVAN_SUNDER_ARMOR = 32, | |
}; | |
+enum Actions | |
+{ | |
+ ACTION_STOP_DARK_MARTYRDOM = 1 | |
+}; | |
+ | |
enum Phases | |
{ | |
PHASE_ALL = 0, | |
@@ -366,6 +371,10 @@ class boss_lady_deathwhisper : public CreatureScript | |
damage -= me->GetPower(POWER_MANA); | |
me->SetPower(POWER_MANA, 0); | |
me->RemoveAurasDueToSpell(SPELL_MANA_BARRIER); | |
+ EntryCheckPredicate pred1(NPC_CULT_FANATIC); | |
+ EntryCheckPredicate pred2(NPC_CULT_ADHERENT); | |
+ summons.DoAction(ACTION_STOP_DARK_MARTYRDOM, pred1); | |
+ summons.DoAction(ACTION_STOP_DARK_MARTYRDOM, pred2); | |
events.SetPhase(PHASE_TWO); | |
events.ScheduleEvent(EVENT_P2_FROSTBOLT, urand(10000, 12000), 0, PHASE_TWO); | |
events.ScheduleEvent(EVENT_P2_FROSTBOLT_VOLLEY, urand(19000, 21000), 0, PHASE_TWO); | |
@@ -644,9 +650,15 @@ class npc_cult_fanatic : public CreatureScript | |
Events.ScheduleEvent(EVENT_CULTIST_DARK_MARTYRDOM, urand(18000, 32000)); | |
} | |
+ void DoAction(int32 const action) | |
+ { | |
+ if (action == ACTION_STOP_DARK_MARTYRDOM) | |
+ Events.CancelEvent(EVENT_CULTIST_DARK_MARTYRDOM); | |
+ } | |
+ | |
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) | |
{ | |
if (spell->Id == SPELL_DARK_TRANSFORMATION) | |
@@ -737,6 +752,12 @@ class npc_cult_adherent : public CreatureScript | |
} | |
} | |
+ void DoAction(int32 const action) | |
+ { | |
+ if (action == ACTION_STOP_DARK_MARTYRDOM) | |
+ Events.CancelEvent(EVENT_CULTIST_DARK_MARTYRDOM); | |
+ } | |
+ | |
void UpdateAI(uint32 const diff) | |
{ | |
if (!UpdateVictim()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment