From d9e307fc16ac7165b5d672937639f791ab9cacab Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Tue, 5 Nov 2024 05:53:27 -0500 Subject: [PATCH] Classic/Stratholme/InstructorGalford: Add boss module (#1202) --- Classic/Stratholme/InstructorGalford.lua | 65 ++++++++++++++++++++++-- Classic/Stratholme/Options/Colors.lua | 4 ++ Classic/Stratholme/Options/Sounds.lua | 4 ++ 3 files changed, 68 insertions(+), 5 deletions(-) diff --git a/Classic/Stratholme/InstructorGalford.lua b/Classic/Stratholme/InstructorGalford.lua index f4598a5d4..ac5bbcff8 100644 --- a/Classic/Stratholme/InstructorGalford.lua +++ b/Classic/Stratholme/InstructorGalford.lua @@ -14,25 +14,80 @@ mod:SetEncounterID(477) function mod:GetOptions() return { - + 17366, -- Fire Nova + 33975, -- Pyroblast + {17293, "DISPEL"}, -- Burning Winds } end function mod:OnBossEnable() + self:Log("SPELL_CAST_SUCCESS", "FireNova", 17366) if self:Retail() then - self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames + self:Log("SPELL_CAST_START", "Pyroblast", 33975) + else + self:Log("SPELL_CAST_START", "Pyroblast", 17274) + end + self:Log("SPELL_CAST_START", "BurningWinds", 17293) + self:Log("SPELL_AURA_APPLIED", "BurningWindsApplied", 17293) + if self:Heroic() then -- no encounter events in Timewalking + self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") + self:Death("Win", 10811) end end function mod:OnEngage() + self:CDBar(17366, 3.3) -- Fire Nova + self:CDBar(33975, 6.1) -- Pyroblast + self:CDBar(17293, 7.3) -- Burning Winds +end + +-------------------------------------------------------------------------------- +-- Classic Initialization +-- + +if mod:Classic() then + function mod:GetOptions() + return { + 17366, -- Fire Nova + 17274, -- Pyroblast + {17293, "DISPEL"}, -- Burning Winds + } + end + + function mod:OnEngage() + self:CDBar(17366, 1.4) -- Fire Nova + self:CDBar(17293, 7.0) -- Burning Winds + self:CDBar(17274, 7.0) -- Pyroblast + end end -------------------------------------------------------------------------------- -- Event Handlers -- -function mod:ENCOUNTER_START(_, id) -- XXX no boss frames - if id == self.engageId then - self:Engage() +function mod:FireNova(args) + self:Message(args.spellId, "yellow") + self:CDBar(args.spellId, 7.3) + self:PlaySound(args.spellId, "alarm") +end + +function mod:Pyroblast(args) + if self:MobId(args.sourceGUID) == 10811 then -- Instructor Galford + self:Message(args.spellId, "red", CL.casting:format(args.spellName)) + self:CDBar(args.spellId, 9.7) + self:PlaySound(args.spellId, "alert") + end +end + +function mod:BurningWinds(args) + self:Message(args.spellId, "orange", CL.casting:format(args.spellName)) + self:CDBar(args.spellId, 9.7) + self:PlaySound(args.spellId, "alert") +end + +function mod:BurningWindsApplied(args) + if self:Me(args.destGUID) or self:Dispeller("magic", nil, args.spellId) then + self:TargetMessage(args.spellId, "yellow", args.destName) + self:PlaySound(args.spellId, "alarm") end end diff --git a/Classic/Stratholme/Options/Colors.lua b/Classic/Stratholme/Options/Colors.lua index ed5254b8a..a293e95e4 100644 --- a/Classic/Stratholme/Options/Colors.lua +++ b/Classic/Stratholme/Options/Colors.lua @@ -22,6 +22,10 @@ BigWigs:AddColors("Willey Hopebreaker", { }) BigWigs:AddColors("Instructor Galford", { + [17274] = "red", + [17293] = {"blue","orange","yellow"}, + [17366] = "yellow", + [33975] = "red", }) BigWigs:AddColors("Balnazzar", { diff --git a/Classic/Stratholme/Options/Sounds.lua b/Classic/Stratholme/Options/Sounds.lua index 9a842d391..55e30d25d 100644 --- a/Classic/Stratholme/Options/Sounds.lua +++ b/Classic/Stratholme/Options/Sounds.lua @@ -22,6 +22,10 @@ BigWigs:AddSounds("Willey Hopebreaker", { }) BigWigs:AddSounds("Instructor Galford", { + [17274] = "alert", + [17293] = {"alarm","alert"}, + [17366] = "alarm", + [33975] = "alert", }) BigWigs:AddSounds("Balnazzar", {