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.
79 lines
2.1 KiB
79 lines
2.1 KiB
|
|
--------------------------------------------------------------------------------
|
|
-- Module Declaration
|
|
--
|
|
|
|
local mod, CL = BigWigs:NewBoss("Wise Mari", 960, 672)
|
|
if not mod then return end
|
|
mod:RegisterEnableMob(56448)
|
|
mod.engageId = 1418
|
|
mod.respawnTime = 20
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Locals
|
|
--
|
|
|
|
local deaths = 0
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Initialization
|
|
--
|
|
|
|
function mod:GetOptions()
|
|
return {
|
|
"stages",
|
|
-6327, -- Call Water
|
|
106653, -- Sha Residue
|
|
115167, -- Corrupted Waters
|
|
}
|
|
end
|
|
|
|
function mod:OnBossEnable()
|
|
self:Log("SPELL_CAST_START", "BubbleBurst", 106612)
|
|
|
|
self:Log("SPELL_CAST_START", "CallWater", 106526)
|
|
self:Death("AddDeath", 56511)
|
|
|
|
self:Log("SPELL_PERIODIC_DAMAGE", "GroundEffectDamage", 106653) -- Sha Residue
|
|
self:Log("SPELL_PERIODIC_MISSED", "GroundEffectDamage", 106653)
|
|
self:Log("SPELL_DAMAGE", "GroundEffectDamage", 115167) -- Corrupted Waters
|
|
self:Log("SPELL_MISSED", "GroundEffectDamage", 115167)
|
|
end
|
|
|
|
function mod:OnEngage()
|
|
deaths = 0
|
|
self:MessageOld("stages", "green", "info", CL.stage:format(1), false)
|
|
end
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Event Handlers
|
|
--
|
|
|
|
function mod:BubbleBurst(args)
|
|
local text = CL.stage:format(2)
|
|
self:DelayedMessage("stages", 4, "green", text, false, "info")
|
|
self:Bar("stages", 4, text, args.spellId)
|
|
end
|
|
|
|
function mod:CallWater(args)
|
|
self:DelayedMessage(-6327, 5, "red", CL.count:format(CL.add_spawned, deaths+1), args.spellId, "alarm")
|
|
self:Bar(-6327, 5, CL.next_add, args.spellId)
|
|
end
|
|
|
|
function mod:AddDeath()
|
|
deaths = deaths + 1
|
|
self:MessageOld(-6327, "yellow", nil, CL.add_killed:format(deaths, 4), 106526)
|
|
end
|
|
|
|
do
|
|
local prev = 0
|
|
function mod:GroundEffectDamage(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
|
|
|