You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.6 KiB

4 years ago
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Halls of Lightning Trash", 602)
if not mod then return end
mod.displayName = CL.trash
mod:RegisterEnableMob(
28836, -- Stormforged Runeshaper
28837 -- Stormforged Sentinel
)
--------------------------------------------------------------------------------
-- Localization
--
local L = mod:GetLocale()
if L then
L.runeshaper = "Stormforged Runeshaper"
L.sentinel = "Stormforged Sentinel"
end
--------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
--[[ Stormforged Runeshaper ]]--
61581, -- Charged Flurry
--[[ Stormforged Sentinel ]]--
59165, -- Sleep
}, {
[61581] = L.runeshaper,
[59165] = L.sentinel,
}
end
function mod:OnBossEnable()
self:RegisterMessage("BigWigs_OnBossEngage", "Disable")
self:Log("SPELL_AURA_APPLIED", "ChargedFlurry", 61581) -- does inadequate amount of damage since The Great Squish
self:Log("SPELL_AURA_APPLIED", "Sleep", 53045, 59165) -- normal, heroic
end
--------------------------------------------------------------------------------
-- Event Handlers
--
do
local prev = 0
function mod:ChargedFlurry(args)
local t = GetTime()
if t-prev > 1 then
prev = t
self:MessageOld(args.spellId, "red", self:Interrupter() and "warning" or "long", CL.casting:format(args.spellName))
end
end
end
function mod:Sleep(args)
self:TargetMessageOld(59165, args.destName, "yellow", "alarm")
end