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.
46 lines
1.2 KiB
46 lines
1.2 KiB
|
4 years ago
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Module declaration
|
||
|
|
--
|
||
|
|
|
||
|
|
local mod, CL = BigWigs:NewBoss("Forgemaster Garfrost", 658, 608)
|
||
|
|
if not mod then return end
|
||
|
|
mod:RegisterEnableMob(36494)
|
||
|
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Initialization
|
||
|
|
--
|
||
|
|
|
||
|
|
function mod:GetOptions()
|
||
|
|
return {
|
||
|
|
{70381, "ICON"}, -- Deep Freeze
|
||
|
|
{68789, "FLASH"}, -- Throw Saronite
|
||
|
|
}
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:OnBossEnable()
|
||
|
|
self:Log("SPELL_AURA_APPLIED", "DeepFreeze", 70381)
|
||
|
|
self:Log("SPELL_AURA_REMOVED", "DeepFreezeRemoved", 70381)
|
||
|
|
self:RegisterEvent("CHAT_MSG_RAID_BOSS_WHISPER")
|
||
|
|
self:Death("Win", 36494)
|
||
|
|
end
|
||
|
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Event Handlers
|
||
|
|
--
|
||
|
|
|
||
|
|
function mod:DeepFreeze(args)
|
||
|
|
self:TargetMessageOld(args.spellId, args.destName, "yellow", "alert")
|
||
|
|
self:TargetBar(args.spellId, 14, args.destName)
|
||
|
|
self:PrimaryIcon(args.spellId, args.destName)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:DeepFreezeRemoved(args)
|
||
|
|
self:PrimaryIcon(args.spellId)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:CHAT_MSG_RAID_BOSS_WHISPER()
|
||
|
|
self:MessageOld(68789, "blue", "alarm", CL.incoming:format(self:SpellName(68789)))
|
||
|
|
self:Flash(68789)
|
||
|
|
end
|