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

79 lines
3.7 KiB
Lua

-- Ezzel Darkbrewer (Octo BigWigs Raids/BWL/Ezzel.lua), Turtle, native server events. Octo-only spawn.
-- Acid Bomb 30194/30195, Chemical Rage 30196, Concussion 30202 (pillar hit), Transmute to Gold 30204,
-- Curse of Tongues 11719 (tracked on Ezzel from the server instead of Octo's aura polling).
local EZZEL = 65148
local L = {
bar_charge = "Charge on %s", say_charge = "Charge On Me!", warn_charge = "HIDE", msg_preCharge = "Charge soon!",
msg_chemicalRage = "Chemical Rage - 80% damage reduction until Ezzel hits a pillar", bar_chemicalRage = "Damage Reduction active",
warn_acid = "ACID - MOVE", bar_transmute = "Kill Boss", warn_tongues = "CoT missing!",
trigger_charge = "begins charging (.+)!",
}
local timer = {charge = 8, transmute = 8, chemicalRage = 60}
local icon = {charge = "ABILITY_MOUNT_MOUNTAINRAM", chemicalRage = "Spell_Nature_AncestralGuardian",
acid = "ABILITY_CREATURE_POISON_06", transmute = "SPELL_HOLY_HARMUNDEADAURA", tongues = "Spell_Shadow_CurseOfTounges"}
local m = OctoBossMods:NewModule("Ezzel Darkbrewer", {npcs = {EZZEL}, displayName = "Ezzel Darkbrewer", zone = "Blackwing Lair"})
function m:OnEngage()
self.nextThreshold, self.tongues, self.lowWarned = 80, nil, nil
self:ScheduleRepeatingEvent("health", function() self:HealthCheck() end, 0.5)
end
function m:HealthCheck()
for _, unit in ipairs({"target", "focus", "mouseover"}) do
if OctoBossMods.NpcId(UnitGUID(unit)) == EZZEL then
local ok, pct = pcall(function() return UnitHealth(unit) * 100 / UnitHealthMax(unit) end)
if not ok then return end
if pct < 15 and not self.lowWarned then
self.lowWarned = true
if not self.tongues then
self:WarningSign(icon.tongues, 1, false, L.warn_tongues)
self:Sound("Alert")
end
end
if pct < self.nextThreshold then
self:Message(L.msg_preCharge, "Attention")
self.nextThreshold = self.nextThreshold - 25
end
return
end
end
end
function m:Charge(text)
local player = strmatch(text, L.trigger_charge)
if not player then return end
self:Bar(format(L.bar_charge, player), timer.charge, icon.charge, true, "Yellow")
if player == UnitName("player") then
self:WarningSign(icon.charge, 4, true, L.warn_charge)
self:Sound("RunAway")
SendChatMessage(L.say_charge, "SAY")
else
self:Sound("Alarm")
end
self:SetRaidTargetForPlayer(player, 4)
self:ScheduleEvent("unmark", function() self:RestorePreviousRaidTargetForPlayer(player) end, timer.charge)
self:Bar(L.bar_chemicalRage, timer.chemicalRage, icon.chemicalRage, true, "Cyan")
self:Message(L.msg_chemicalRage, "Core")
end
function m:Concussion(_, _, dstGUID)
if OctoBossMods.NpcId(dstGUID) == EZZEL then self:RemoveBar(L.bar_chemicalRage) end
end
function m:Acid(_, _, dstGUID)
if dstGUID ~= UnitGUID("player") or not self:Throttle("acid", 1) then return end
self:Sound("Info")
self:WarningSign(icon.acid, 1, false, L.warn_acid)
end
function m:Transmute()
self:Bar(L.bar_transmute, timer.transmute, icon.transmute, true, "Red")
self:Sound("Beware")
end
function m:Tongues(_, _, dstGUID) if OctoBossMods.NpcId(dstGUID) == EZZEL then self.tongues = true end end
function m:TonguesFade(_, _, dstGUID) if OctoBossMods.NpcId(dstGUID) == EZZEL then self.tongues = nil end end
m.emotes = {{L.trigger_charge, "Charge", pattern = true}}
m.events = {
SPELL_AURA_APPLIED = {[30194] = "Acid", [30195] = "Acid", [30202] = "Concussion", [11719] = "Tongues"},
SPELL_AURA_REMOVED = {[11719] = "TonguesFade"},
SPELL_PERIODIC_DAMAGE = {[30194] = "Acid", [30195] = "Acid"},
SPELL_CAST_START = {[30204] = "Transmute"},
}