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.
39 lines
1019 B
39 lines
1019 B
-------------------------------------------------------------------------------
|
|
-- Module Declaration
|
|
|
|
local mod, CL = BigWigs:NewBoss("Broggok", 542, 556)
|
|
if not mod then return end
|
|
mod:RegisterEnableMob(17380)
|
|
-- mod.engageId = 1924 -- no boss frames
|
|
-- mod.respawnTime = 0 -- resets, doesn't respawn
|
|
|
|
-------------------------------------------------------------------------------
|
|
-- Initialize
|
|
|
|
function mod:GetOptions()
|
|
return {
|
|
30916, -- Poison Cloud
|
|
}
|
|
end
|
|
|
|
function mod:OnBossEnable()
|
|
self:Log("SPELL_DAMAGE", "PoisonCloud", 30916)
|
|
self:Log("SPELL_MISSED", "PoisonCloud", 30916)
|
|
self:Death("Win", 17380)
|
|
end
|
|
|
|
-------------------------------------------------------------------------------
|
|
-- Event Handlers
|
|
|
|
do
|
|
local prev = 0
|
|
function mod:PoisonCloud(args)
|
|
if self:Me(args.destGUID) then
|
|
local t = GetTime()
|
|
if t - prev > 1.5 then
|
|
prev = t
|
|
self:MessageOld(args.spellId, "blue", "alert", CL.underyou:format(args.spellName))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|