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.
66 lines
1.8 KiB
66 lines
1.8 KiB
|
4 years ago
|
-------------------------------------------------------------------------------
|
||
|
|
-- Module Declaration
|
||
|
|
--
|
||
|
|
|
||
|
|
local mod, CL = BigWigs:NewBoss("Akil'zon", 568, 186)
|
||
|
|
if not mod then return end
|
||
|
|
mod:RegisterEnableMob(23574)
|
||
|
|
mod.engageId = 1189
|
||
|
|
mod.respawnTime = 60
|
||
|
|
|
||
|
|
-------------------------------------------------------------------------------
|
||
|
|
-- Initialization
|
||
|
|
--
|
||
|
|
|
||
|
|
function mod:GetOptions()
|
||
|
|
return {
|
||
|
|
{43622, "PROXIMITY"}, -- Static Disruption
|
||
|
|
{43648, "PROXIMITY", "ICON"}, -- Electrical Storm
|
||
|
|
{97318, "ICON"}, -- Plucked
|
||
|
|
}
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:OnBossEnable()
|
||
|
|
self:Log("SPELL_AURA_APPLIED", "ElectricalStorm", 43648)
|
||
|
|
self:Log("SPELL_AURA_REMOVED", "ElectricalStormRemoved", 43648)
|
||
|
|
self:Log("SPELL_AURA_APPLIED", "Plucked", 97318)
|
||
|
|
self:Log("SPELL_AURA_REMOVED", "PluckedRemoved", 97318)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:OnEngage()
|
||
|
|
self:CDBar(43648, 50) -- Electrical Storm
|
||
|
|
self:OpenProximity(43622, 5) -- Static Disruption
|
||
|
|
end
|
||
|
|
|
||
|
|
-------------------------------------------------------------------------------
|
||
|
|
-- Event Handlers
|
||
|
|
--
|
||
|
|
|
||
|
|
function mod:ElectricalStorm(args)
|
||
|
|
self:CloseProximity(43622) -- Static Disruption
|
||
|
|
if not self:Me(args.destGUID) then
|
||
|
|
self:OpenProximity(args.spellId, 20, args.destName, true)
|
||
|
|
end
|
||
|
|
self:TargetMessageOld(args.spellId, args.destName, "red", "alert")
|
||
|
|
self:Bar(args.spellId, 8)
|
||
|
|
self:PrimaryIcon(args.spellId, args.destName)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:ElectricalStormRemoved(args)
|
||
|
|
self:CloseProximity(args.spellId)
|
||
|
|
self:OpenProximity(43622, 5) -- Static Disruption
|
||
|
|
self:PrimaryIcon(args.spellId)
|
||
|
|
self:CDBar(args.spellId, 40)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:Plucked(args)
|
||
|
|
if self:Me(args.destGUID) then
|
||
|
|
self:TargetMessageOld(args.spellId, args.destName, "red", "alert")
|
||
|
|
self:SecondaryIcon(args.spellId, args.destName)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:PluckedRemoved(args)
|
||
|
|
self:SecondaryIcon(args.spellId)
|
||
|
|
end
|