Skip to content

Commit

Permalink
Classic/Stratholme/RamsteinTheGorger: Add boss module (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 5, 2024
1 parent 7136705 commit 4e2bde2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ BigWigs:AddColors("Magistrate Barthilas", {
})

BigWigs:AddColors("Ramstein the Gorger", {
[5568] = "yellow",
[17307] = {"blue","purple"},
})

BigWigs:AddColors("Postmaster Malown", {
Expand Down
2 changes: 2 additions & 0 deletions Classic/Stratholme/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ BigWigs:AddSounds("Magistrate Barthilas", {
})

BigWigs:AddSounds("Ramstein the Gorger", {
[5568] = "info",
[17307] = "alert",
})

BigWigs:AddSounds("Postmaster Malown", {
Expand Down
32 changes: 24 additions & 8 deletions Classic/Stratholme/RamsteinTheGorger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,49 @@ local mod, CL = BigWigs:NewBoss("Ramstein the Gorger", 329, 455)
if not mod then return end
mod:RegisterEnableMob(10439) -- Ramstein the Gorger
mod:SetEncounterID(483)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {

17307, -- Knockout
5568, -- Trample
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_SUCCESS", "Knockout", 17307)
self:Log("SPELL_AURA_APPLIED", "KnockoutApplied", 17307)
self:Log("SPELL_CAST_SUCCESS", "Trample", 5568)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 10439)
end
end

function mod:OnEngage()
self:CDBar(5568, 4.9) -- Trample
self:CDBar(17307, 8.5) -- Knockout
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
end
function mod:Knockout(args)
self:CDBar(args.spellId, 13.4)
end

function mod:KnockoutApplied(args)
self:TargetMessage(args.spellId, "purple", args.destName)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end

function mod:Trample(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 8.5)
self:PlaySound(args.spellId, "info")
end

0 comments on commit 4e2bde2

Please sign in to comment.