Files
2026-11-23 03:28:32 +02:00

71 lines
3.6 KiB
Lua

-- Lucifron (Octo BigWigs Raids/MC/Lucifron.lua), native server events.
-- boss_lucifron.cpp: Impending Doom 19702, Lucifron's Curse 19703, Shadow Shock 19460.
-- Flamewaker Protector (creature_spells 121190): Dominate Mind 20604.
local PROTECTOR = 12119
local L = {
bar_curseCd = "Next Lucifron's Curse", msg_curse = "Lucifron's Curse - Decurse!",
bar_doomCd = "Next Impending Doom", bar_doomDmg = "Impending Doom!", msg_doom = "Impending Doom - Dispel!",
bar_shadowShockCd = "Shadow Shock CD", bar_mcCd = "MC CD", bar_mc = " MC", msg_mc = " MC - Dispel!",
bar_mcCast = "Casting MC!", msg_mcCast = "Casting MC - Interrupt!", msg_addDead = "/2 Flamewaker Protectors Dead",
}
local timer = {curseFirstCd = 20, curseCd = 15, doomCd = 10, doomDur = 10, mcCd = 8, mcCast = 2, mc = 15,
shadowShockFirstCd = {5, 10}, shadowShockCd = {10, 20}}
local icon = {curse = "Spell_Shadow_BlackPlague", doom = "Spell_Shadow_NightOfTheDead", mc = "Spell_Shadow_ShadowWordDominate",
shadowShock = "spell_shadow_shadowbolt"}
local color = {curse = "Blue", doomCd = "White", doomDur = "Black", mcCd = "Orange", mcCast = "Cyan", mc = "Red", shadowShockCd = "Magenta"}
local m = OctoBossMods:NewModule("Lucifron", {npcs = {12118, PROTECTOR}, killNpcs = {12118}, displayName = "Lucifron",
zone = "Molten Core"})
function m:OnEngage()
self.addsDead = 0
self:Bar(L.bar_curseCd, timer.curseFirstCd, icon.curse, true, color.curse)
self:Bar(L.bar_doomCd, timer.doomCd, icon.doom, true, color.doomCd)
self:Bar(L.bar_mcCd, timer.mcCd, icon.mc, true, color.mcCd)
self:IntervalBar(L.bar_shadowShockCd, timer.shadowShockFirstCd[1], timer.shadowShockFirstCd[2], icon.shadowShock, true, color.shadowShockCd)
end
-- The curse and doom hit the whole raid at once: one warning per cast.
function m:Curse()
if not self:Throttle("curse", 5) then return end
self:Bar(L.bar_curseCd, timer.curseCd, icon.curse, true, color.curse)
self:Message(L.msg_curse, "Urgent", false, "Info")
self:WarningSign(icon.curse, 1)
end
function m:ImpendingDoom()
if not self:Throttle("doom", 5) then return end
self:RemoveBar(L.bar_doomCd)
self:Bar(L.bar_doomDmg, timer.doomDur, icon.doom, true, color.doomDur)
self:Message(L.msg_doom, "Urgent", false, "Info")
self:WarningSign(icon.doom, 1)
self:DelayedBar(timer.doomDur, L.bar_doomCd, timer.doomCd, icon.doom, true, color.doomCd)
end
function m:McCast()
self:RemoveBar(L.bar_mcCd)
self:Bar(L.bar_mcCast, timer.mcCast, icon.mc, true, color.mcCast)
self:Message(L.msg_mcCast, "Important")
self:WarningSign(icon.mc, 0.7)
end
function m:Mc(_, _, _, dstName)
if not dstName then return end
self:Bar(dstName .. L.bar_mc, timer.mc, icon.mc, true, color.mc)
self:Message(dstName .. L.msg_mc, "Attention", false, "Beware")
self:WarningSign(icon.mc, 0.7)
end
function m:McFade(_, _, _, dstName) if dstName then self:RemoveBar(dstName .. L.bar_mc) end end
function m:ShadowShock()
if not self:Throttle("shock", 3) then return end
self:IntervalBar(L.bar_shadowShockCd, timer.shadowShockCd[1], timer.shadowShockCd[2], icon.shadowShock, true, color.shadowShockCd)
end
function m:OnCombatLog(sub, _, _, dstGUID)
if sub == "UNIT_DIED" and OctoBossMods.NpcId(dstGUID) == PROTECTOR then
self.addsDead = (self.addsDead or 0) + 1
self:Message(self.addsDead .. L.msg_addDead, "Positive")
end
end
m.events = {
SPELL_CAST_START = {[20604] = "McCast"},
SPELL_CAST_SUCCESS = {[19703] = "Curse", [19702] = "ImpendingDoom", [19460] = "ShadowShock"},
SPELL_AURA_APPLIED = {[20604] = "Mc"},
SPELL_AURA_REMOVED = {[20604] = "McFade"},
}