From f56598168d1afc019908b374abc5c33b9c09cb71 Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Wed, 8 Jan 2025 19:59:51 -0500 Subject: [PATCH] Classic/Deadmines/RhahkZor: Add boss module (#1233) --- Classic/Deadmines/Options/Colors.lua | 2 ++ Classic/Deadmines/Options/Sounds.lua | 2 ++ Classic/Deadmines/RhahkZor.lua | 41 ++++++++++++++++++++++++---- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Classic/Deadmines/Options/Colors.lua b/Classic/Deadmines/Options/Colors.lua index ca490192b..507f5e488 100644 --- a/Classic/Deadmines/Options/Colors.lua +++ b/Classic/Deadmines/Options/Colors.lua @@ -1,5 +1,7 @@ BigWigs:AddColors("Rhahk'Zor", { + [6304] = "purple", + [450515] = "orange", }) BigWigs:AddColors("Sneed", { diff --git a/Classic/Deadmines/Options/Sounds.lua b/Classic/Deadmines/Options/Sounds.lua index 7eb6e9251..1bb1996c5 100644 --- a/Classic/Deadmines/Options/Sounds.lua +++ b/Classic/Deadmines/Options/Sounds.lua @@ -1,5 +1,7 @@ BigWigs:AddSounds("Rhahk'Zor", { + [6304] = "alert", + [450515] = "alarm", }) BigWigs:AddSounds("Sneed", { diff --git a/Classic/Deadmines/RhahkZor.lua b/Classic/Deadmines/RhahkZor.lua index 4caba2b6f..b844d4a9b 100644 --- a/Classic/Deadmines/RhahkZor.lua +++ b/Classic/Deadmines/RhahkZor.lua @@ -1,4 +1,3 @@ -if BigWigsLoader.isRetail and select(4, GetBuildInfo()) < 110005 then return end -- XXX remove check when 11.0.5 is live -------------------------------------------------------------------------------- -- Module Declaration -- @@ -15,25 +14,55 @@ mod:SetEncounterID(mod:Retail() and 2967 or 2741) function mod:GetOptions() return { - + 6304, -- Rhahk'Zor Slam + 450515, -- Whirling Rage + --455010, -- Fixate, hidden } end function mod:OnBossEnable() + self:Log("SPELL_CAST_SUCCESS", "RhahkZorSlam", 6304) if self:Retail() then - self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames + self:Log("SPELL_CAST_START", "WhirlingRage", 450515) end end function mod:OnEngage() + if self:Retail() then + -- Rhahk'Zor Slam can be cast on pull in Classic, Whirling Rage is Retail-only + self:CDBar(6304, 3.6) -- Rhahk'Zor Slam + self:CDBar(450515, 6.1) -- Whirling Rage + end +end + +-------------------------------------------------------------------------------- +-- Classic Initialization +-- + +if mod:Classic() then + function mod:GetOptions() + return { + 6304, -- Rhahk'Zor Slam + } + end end -------------------------------------------------------------------------------- -- Event Handlers -- -function mod:ENCOUNTER_START(_, id) -- XXX no boss frames - if id == self.engageId then - self:Engage() +function mod:RhahkZorSlam(args) + self:Message(args.spellId, "purple") + if self:Retail() then + self:CDBar(args.spellId, 15.8) + else -- Classic + self:CDBar(args.spellId, 17.8) end + self:PlaySound(args.spellId, "alert") +end + +function mod:WhirlingRage(args) + self:Message(args.spellId, "orange") + self:CDBar(args.spellId, 17.0) + self:PlaySound(args.spellId, "alarm") end