Skip to content

Commit

Permalink
Classic/Stratholme/InstructorGalford: Add boss module (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 5, 2024
1 parent 2314f1f commit d9e307f
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 5 deletions.
65 changes: 60 additions & 5 deletions Classic/Stratholme/InstructorGalford.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
4 changes: 4 additions & 0 deletions Classic/Stratholme/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ BigWigs:AddSounds("Willey Hopebreaker", {
})

BigWigs:AddSounds("Instructor Galford", {
[17274] = "alert",
[17293] = {"alarm","alert"},
[17366] = "alarm",
[33975] = "alert",
})

BigWigs:AddSounds("Balnazzar", {
Expand Down

0 comments on commit d9e307f

Please sign in to comment.