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.
110 lines
2.9 KiB
110 lines
2.9 KiB
|
|
--------------------------------------------------------------------------------
|
|
-- Module Declaration
|
|
--
|
|
|
|
local mod, CL = BigWigs:NewBoss("Soulbound Goliath", 1862, 2126)
|
|
if not mod then return end
|
|
mod:RegisterEnableMob(131667) -- Soulbound Goliath
|
|
mod.engageId = 2114
|
|
mod.respawnTime = 30
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Initialization
|
|
--
|
|
|
|
local soulThornsMarker = mod:AddMarkerOption(true, "npc", 8, 267907, 8) -- Soul Thorns
|
|
function mod:GetOptions()
|
|
return {
|
|
{260508, "TANK"}, -- Crush
|
|
260512, -- Soul Harvest
|
|
{267907, "SAY"}, -- Soul Thorns
|
|
soulThornsMarker,
|
|
260541, -- Burning Brush
|
|
260569, -- Wildfire
|
|
}
|
|
end
|
|
|
|
function mod:OnBossEnable()
|
|
self:Log("SPELL_AURA_APPLIED_DOSE", "SoulHarvest", 260512)
|
|
self:Log("SPELL_CAST_SUCCESS", "SoulThorns", 260551)
|
|
self:Log("SPELL_SUMMON", "SoulThornsSummon", 267907)
|
|
self:Log("SPELL_AURA_APPLIED", "SoulThornsApplied", 267907)
|
|
self:Log("SPELL_AURA_REMOVED", "SoulThornsRemoved", 267907)
|
|
self:Log("SPELL_CAST_START", "Crush", 260508)
|
|
self:Log("SPELL_AURA_APPLIED", "BurningBrush", 260541)
|
|
self:Log("SPELL_AURA_APPLIED", "Wildfire", 260569) -- XXX Is there more events?
|
|
end
|
|
|
|
function mod:OnEngage()
|
|
self:Bar(260508, 6) -- Crush
|
|
self:Bar(267907, 10) -- Soul Thorns
|
|
end
|
|
|
|
--------------------------------------------------------------------------------
|
|
-- Event Handlers
|
|
--
|
|
|
|
function mod:SoulHarvest(args)
|
|
if args.amount % 3 == 0 then
|
|
self:StackMessage(args.spellId, args.destName, args.amount, "yellow")
|
|
self:PlaySound(args.spellId, "alert")
|
|
end
|
|
end
|
|
|
|
function mod:SoulThorns()
|
|
self:CDBar(267907, 22)
|
|
end
|
|
|
|
do
|
|
local soulThornsGUID = nil
|
|
|
|
function mod:MarkSoulThorns(_, unit, guid)
|
|
if soulThornsGUID == guid then
|
|
soulThornsGUID = nil
|
|
self:CustomIcon(soulThornsMarker, unit, 8)
|
|
self:UnregisterTargetEvents()
|
|
end
|
|
end
|
|
|
|
function mod:SoulThornsSummon(args)
|
|
if self:GetOption(soulThornsMarker) then
|
|
soulThornsGUID = args.destGUID
|
|
end
|
|
end
|
|
|
|
function mod:SoulThornsApplied(args)
|
|
if self:Me(args.destGUID) then
|
|
self:Say(args.spellId)
|
|
end
|
|
self:TargetMessage(args.spellId, "orange", args.destName)
|
|
self:PlaySound(args.spellId, "alarm", nil, args.destName)
|
|
self:TargetBar(args.spellId, 15, args.destName)
|
|
if self:GetOption(soulThornsMarker) then
|
|
soulThornsGUID = nil
|
|
self:RegisterTargetEvents("MarkSoulThorns")
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SoulThornsRemoved(args)
|
|
self:StopBar(args.spellId, args.destName)
|
|
end
|
|
|
|
function mod:Crush(args)
|
|
self:Message(args.spellId, "yellow")
|
|
self:PlaySound(args.spellId, "alert")
|
|
self:CDBar(args.spellId, 17)
|
|
end
|
|
|
|
function mod:BurningBrush(args)
|
|
self:Message(args.spellId, "cyan", CL.other:format(args.spellName, args.destName))
|
|
self:PlaySound(args.spellId, "long")
|
|
end
|
|
|
|
function mod:Wildfire(args)
|
|
if self:Me(args.destGUID) then
|
|
self:PersonalMessage(args.spellId)
|
|
self:PlaySound(args.spellId, "alarm")
|
|
end
|
|
end
|
|
|