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

32 lines
1.6 KiB
Lua

-- Garr (Octo BigWigs Raids/MC/Garr.lua), native server events.
-- boss_garr.cpp: Antimagic Pulse 19492; Firesworn Immolate 15733. Octo's "pulse removed your buff" chat text has no
-- server packet behind it (it is the client's own dispel log), so it is not reproduced.
local FIRESWORN = 12099
local L = {bar_antimagicPulse = "Antimagic Pulse", msg_addDead = "/8 Firesworn Dead", msg_immolate = "Immolate - Dispel!"}
local timer = {antimagicPulseFirst = 15, antimagicPulse = 20}
local icon = {antimagicPulse = "spell_holy_dispelmagic", immolate = "spell_fire_immolation"}
local m = OctoBossMods:NewModule("Garr", {npcs = {12057, FIRESWORN}, killNpcs = {12057}, displayName = "Garr", zone = "Molten Core"})
function m:OnEngage()
self.addsDead = 0
self:Bar(L.bar_antimagicPulse, timer.antimagicPulseFirst, icon.antimagicPulse, true, "White")
end
function m:AntimagicPulse()
if self:Throttle("pulse", 3) then self:Bar(L.bar_antimagicPulse, timer.antimagicPulse, icon.antimagicPulse, true, "White") end
end
function m:Immolate()
local _, class = UnitClass("player")
if (class == "PRIEST" or class == "PALADIN") and self:Throttle("immolate", 3) then
self:Message(L.msg_immolate, "Urgent")
self:WarningSign(icon.immolate, 1)
end
end
function m:OnCombatLog(sub, _, _, dstGUID)
if sub == "UNIT_DIED" and OctoBossMods.NpcId(dstGUID) == FIRESWORN then
self.addsDead = (self.addsDead or 0) + 1
self:Message(self.addsDead .. L.msg_addDead, "Positive")
end
end
m.events = {SPELL_CAST_SUCCESS = {[19492] = "AntimagicPulse"}, SPELL_AURA_APPLIED = {[15733] = "Immolate"}}