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.

52 lines
1.4 KiB

4 years ago
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Helix Gearbreaker", 36, 90)
if not mod then return end
mod:RegisterEnableMob(47296, 47297) -- Helix Gearbreaker, Lumbering Oaf
--------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
{88352, "ICON", "SAY", "FLASH", "PROXIMITY"}, -- Chest Bomb
}
end
function mod:OnBossEnable()
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Log("SPELL_AURA_APPLIED", "ChestBomb", 88352)
self:Log("SPELL_AURA_REMOVED", "ChestBombRemoved", 88352)
self:Death("Win", 47296)
end
--------------------------------------------------------------------------------
-- Event Handlers
--
function mod:ChestBomb(args)
self:TargetMessageOld(args.spellId, args.destName, "red", "alert")
self:TargetBar(args.spellId, 10, args.destName)
self:PrimaryIcon(args.spellId, args.destName)
if self:Me(args.destGUID) then
self:Say(args.spellId)
self:Flash(args.spellId)
self:OpenProximity(args.spellId, 10)
end
end
function mod:ChestBombRemoved(args)
self:StopBar(args.spellName, args.destName)
self:PrimaryIcon(args.spellId)
if self:Me(args.destGUID) then
self:CloseProximity(args.spellId)
end
end