57 lines
3.5 KiB
Lua
57 lines
3.5 KiB
Lua
-- Moroes (Octo BigWigs Raids/Karazhan/Moroes.lua), Turtle Lower Karazhan, native server events.
|
|
-- boss_moroes.cpp: Glittering Dust 57095, Smoke Bomb 57096, Shuffle Kick 57097, Agonizing Concussion 57098,
|
|
-- Shadow Blast 57099, Moroes Curse 57100, Reflection 27564. Phase 1 ends with him leaving for the stage (no kill);
|
|
-- the kill is his death ("Medivh, I have failed you...").
|
|
local L = {
|
|
trigger_p1 = "New guests? It has been a while since we have had those.",
|
|
trigger_p1End = "Now now, why don't we save such pleasantries for a more, entertaining show.",
|
|
trigger_p2 = "It is my duty to protect and watch over this tower",
|
|
trigger_death = "Medivh, I have failed you...",
|
|
bar_p1 = "Moroes Phase 1", bar_p2 = "Moroes Phase 2", bar_smokeBomb = "Players Smoke Bombed", bar_reflect = "Spell Reflect!",
|
|
msg_reflect = "Spell Reflect!", bar_shuffleKick = " Kicked", msg_curse = "Moroes Curse, Decurse!", bar_dust = " Dusted",
|
|
bar_dust_cd = "Tank Stun (use fap soon)",
|
|
}
|
|
local timer = {p1 = 7, p2 = 12, smokeBomb = 10, reflect = 5, shuffleKick = 4, dust = 10, dust_cd = 20}
|
|
local icon = {p = "Inv_Misc_Pocketwatch_01", smokeBomb = "Ability_Vanish", reflect = "Spell_Arcane_Blink", shuffleKick = "Ability_Kick",
|
|
curse = "Spell_Shadow_CurseOfAchimonde", dust = "Spell_Nature_Sleep"}
|
|
local m = OctoBossMods:NewModule("Moroes", {npcs = {61225, 61226}, displayName = "Moroes", zone = "Karazhan", manualKill = true,
|
|
engageYells = {L.trigger_p1, L.trigger_p2}})
|
|
function m:OnEngage() self:Bar(L.bar_dust_cd, timer.dust_cd, icon.dust, true, "Cyan") end
|
|
function m:P1() self:Bar(L.bar_p1, timer.p1, icon.p, true, "White") end
|
|
function m:P1End() OctoBossMods:Reset() end
|
|
function m:P2() self:Bar(L.bar_p2, timer.p2, icon.p, true, "White") end
|
|
function m:SmokeBomb()
|
|
if not self:Throttle("smoke", 3) then return end
|
|
self:Bar(L.bar_smokeBomb, timer.smokeBomb, icon.smokeBomb, true, "Black")
|
|
self:WarningSign(icon.smokeBomb, 0.7)
|
|
end
|
|
function m:Reflect(_, _, dstGUID)
|
|
local id = OctoBossMods.NpcId(dstGUID)
|
|
if id ~= 61225 and id ~= 61226 then return end
|
|
self:Bar(L.bar_reflect, timer.reflect, icon.reflect, true, "Red")
|
|
self:WarningSign(icon.reflect, timer.reflect)
|
|
self:Message(L.msg_reflect, "Important", false, "Long")
|
|
end
|
|
function m:ReflectFade() self:RemoveBar(L.bar_reflect) self:RemoveWarningSign(icon.reflect) end
|
|
function m:ShuffleKick(_, _, _, dstName) if dstName then self:Bar(dstName .. L.bar_shuffleKick, timer.shuffleKick, icon.shuffleKick, true, "Blue") end end
|
|
function m:ShuffleKickFade(_, _, _, dstName) if dstName then self:RemoveBar(dstName .. L.bar_shuffleKick) end end
|
|
function m:Curse()
|
|
local _, c = UnitClass("player")
|
|
if (c == "MAGE" or c == "DRUID") and self:Throttle("curse", 3) then
|
|
self:Message(L.msg_curse, "Urgent")
|
|
self:WarningSign(icon.curse, 0.7)
|
|
end
|
|
end
|
|
function m:Dust(_, _, _, dstName)
|
|
if not dstName then return end
|
|
self:Bar(dstName .. L.bar_dust, timer.dust, icon.dust, true, "Cyan")
|
|
if self:Throttle("dustcd", 5) then self:Bar(L.bar_dust_cd, timer.dust_cd, icon.dust, true, "Cyan") end
|
|
end
|
|
function m:DustFade(_, _, _, dstName) if dstName then self:RemoveBar(dstName .. L.bar_dust) end end
|
|
function m:Dead() OctoBossMods:Victory(self) end
|
|
m.yells = {{L.trigger_p1, "P1"}, {L.trigger_p1End, "P1End"}, {L.trigger_p2, "P2"}, {L.trigger_death, "Dead"}}
|
|
m.events = {
|
|
SPELL_AURA_APPLIED = {[57096] = "SmokeBomb", [27564] = "Reflect", [57097] = "ShuffleKick", [57100] = "Curse", [57095] = "Dust"},
|
|
SPELL_AURA_REMOVED = {[27564] = "ReflectFade", [57097] = "ShuffleKickFade", [57095] = "DustFade"},
|
|
}
|