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/RamsteinTheGorger: Add boss module #1196

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
2 changes: 2 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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 @@ -33,6 +33,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