Skip to content

Commit

Permalink
Classic/ZulFarrak/Gahzrilla: Add boss module (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 4, 2024
1 parent ce553ed commit 42eee58
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
35 changes: 30 additions & 5 deletions Classic/ZulFarrak/Gahzrilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,49 @@ mod:SetEncounterID(594)

function mod:GetOptions()
return {
{11836, "DISPEL"}, -- Freeze Solid
11902, -- Gahz'rilla Slam
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_START", "FreezeSolid", 11836)
self:Log("SPELL_AURA_APPLIED", "FreezeSolidApplied", 11836)
self:Log("SPELL_CAST_START", "GahzrillaSlam", 11902)
self:Log("SPELL_CAST_SUCCESS", "GahzrillaSlamSuccess", 11902)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 7273)
end
end

function mod:OnEngage()
self:CDBar(11836, 12.2) -- Freeze Solid
self:CDBar(11902, 13.1) -- Gahz'rilla Slam
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:FreezeSolid(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 15.8)
self:PlaySound(args.spellId, "alert")
end

function mod:FreezeSolidApplied(args)
if self:Me(args.destGUID) or self:Dispeller("magic", true, args.spellId) then
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "warning", nil, args.destName)
end
end

function mod:GahzrillaSlam(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
end

function mod:GahzrillaSlamSuccess(args)
self:CDBar(args.spellId, 7.3)
end
2 changes: 2 additions & 0 deletions Classic/ZulFarrak/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ BigWigs:AddColors("Witch Doctor Zum'rah", {
})

BigWigs:AddColors("Gahz'rilla", {
[11836] = {"blue","red","yellow"},
[11902] = "orange",
})

BigWigs:AddColors("Nekrum & Sezz'ziz", {
Expand Down
2 changes: 2 additions & 0 deletions Classic/ZulFarrak/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ BigWigs:AddSounds("Witch Doctor Zum'rah", {
})

BigWigs:AddSounds("Gahz'rilla", {
[11836] = {"alert","warning"},
[11902] = "alarm",
})

BigWigs:AddSounds("Nekrum & Sezz'ziz", {
Expand Down

0 comments on commit 42eee58

Please sign in to comment.