Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic/Stratholme/InstructorGalford: Add boss module #1202

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -15,6 +15,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 @@ -15,6 +15,10 @@ BigWigs:AddSounds("Willey Hopebreaker", {
})

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

BigWigs:AddSounds("Balnazzar", {
Expand Down