Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mod:UNIT_SPELLCAST_SUCCEEDED(unitId, spellName, _, _, spellId)
- if spellId == 145235 then -- throw axe at heart , transition into first intermission
- if phase == 1 then
- self:Bar(-8305, 25, CL.intermission, "SPELL_HOLY_PRAYEROFSHADOWPROTECTION")
- self:CancelTimer(waveTimer)
- waveTimer = nil
- self:StopBar(-8292) -- Kor'kron Warbringer aka add waves
- self:StopBar(-8298) -- Siege Engineer
- self:StopBar(-8294) -- Farseer
- self:StopBar(144758) -- Desecrate
- self:StopBar(144821) -- Warsong
- self:UnregisterEvent("UPDATE_MOUSEOVER_UNIT")
- end
- elseif spellId == 144866 then -- Enter Realm of Y'Shaarj -- actually being pulled
- self:StopBar(144758) -- Desecrate
- self:StopBar(67229) -- Mind Control
- self:StopBar(CL.count:format(self:SpellName(144985), whirlingCounter)) -- Whirling Corruption
- self:Message(-8305, "Neutral", nil, CL.intermission, "SPELL_HOLY_PRAYEROFSHADOWPROTECTION")
- self:Bar(-8305, 210, CL.intermission, "SPELL_HOLY_PRAYEROFSHADOWPROTECTION")
- self:Bar(-8305, 62, CL.over:format(CL.intermission), "SPELL_HOLY_PRAYEROFSHADOWPROTECTION")
- whirlingCounter = 1
- annihilateCounter = 1
- hopeTimer = false
- elseif spellId == 144956 then -- Jump To Ground -- exiting intermission
- if phase == 2 then
- if hopeTimer then self:CancelTimer(hopeTimer) end
- desecrateCounter = 1
- self:Bar(144758, 10) -- Desecrate
- self:Bar(145065, 15, 67229, 145065) -- Mind Control
- self:Bar(144985, 30, CL.count:format(self:SpellName(144985), whirlingCounter)) -- Whirling Corruption
- self:RegisterUnitEvent("UNIT_HEALTH_FREQUENT", nil, "boss1", "boss2", "boss3")
- -- warn for empowered abilities
- local power = UnitPower("boss1")
- while power >= warnPower do -- can he hit 100 energy before p3? that would be some shenanigans
- self:DelayedMessage("stages", 2, "Attention", L.empowered_message:format(abilities[warnPower]), false, "Info")
- warnPower = warnPower + 25
- end
- else -- first time, don't start timers yet
- phase = 2
- warnPower = 25
- end
- elseif spellId == 145647 then -- Realm of Y'Shaarj -- phase 3
- phase = 3
- mcCounter = 1
- desecrateCounter = 1
- self:Message("stages", "Neutral", nil, CL.phase:format(phase), false)
- self:StopBar(CL.intermission)
- self:Bar(144985, 48, CL.count:format(self:SpellName(144985), whirlingCounter)) -- Whirling Corruption
- if self:Heroic() then
- -- XXX lets try to improve this, because it looks like if it is not cast within 32 sec, then it is going to be closer to 40 than to 30 need more Transcriptor log
- mindControl = nil
- self:ScheduleTimer(mindControlMagic, 32, 145065)
- self:Bar(145065, 31, 67229, 145065) -- Mind Control
- else
- self:Bar(145065, 29, 67229, 145065) -- Mind Control
- end
- self:CDBar(144758, 21) -- Desecrate -- on heroic 21-23
- elseif spellId == 146984 then -- phase 4 Enter Realm of Garrosh
- phase = 4
- self:Message("stages", "Neutral", nil, CL.phase:format(phase), false)
- self:StopBar(CL.intermission)
- self:StopBar(CL.count:format(self:SpellName(144985), whirlingCounter)) -- Whirling Corruption
- self:StopBar(144758) -- Desecrate
- self:StopBar(67229) -- Mind Control
- self:Bar(147209, 30, CL.count:format(self:SpellName(147209), 1)) -- Malice
- self:Bar("bombardment", 69, CL.count:format(L.bombardment, 1), 147120) -- Bombardment
- self:RegisterUnitEvent("UNIT_POWER_FREQUENT", nil, "boss1")
- elseif spellId == 147126 then -- Clump Check
- self:Bar("clump_check", 3, spellName, spellId)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement