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.

58 lines
1.6 KiB

4 years ago
--------------------------------------------------------------------------------
-- Module declaration
--
local mod, CL = BigWigs:NewBoss("Vexallus", 585, 531)
if not mod then return end
mod:RegisterEnableMob(24744)
mod.engageId = 1898
-- mod.respawnTime = 0 -- resets, doesn't respawn
--------------------------------------------------------------------------------
-- Localization
--
local L = mod:GetLocale()
if L then
L.energy_discharged = "%s discharged" -- %s = Pure Energy (npc ID = 24745)
end
--------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
-5085, -- Pure Energy
44335, -- Energy Feedback
}
end
function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "EnergyFeedback", 44335)
self:Log("SPELL_AURA_APPLIED_DOSE", "EnergyFeedback", 44335)
self:Log("SPELL_AURA_REMOVED", "EnergyFeedbackRemoved", 44335)
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1")
end
--------------------------------------------------------------------------------
-- Event Handlers
--
function mod:EnergyFeedback(args)
self:StackMessage(args.spellId, args.destName, args.amount, "orange")
self:TargetBar(args.spellId, 30, args.destName)
end
function mod:EnergyFeedbackRemoved(args)
self:StopBar(args.spellName, args.destName)
end
function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, spellId)
if spellId == 44322 or spellId == 46154 then -- Summon Pure Energy (normal / heroic)
self:MessageOld(-5085, "red", nil, L.energy_discharged:format(self:SpellName(-5085)), false)
end
end