Skip to content

Commit

Permalink
Classic/Stratholme/LordAuriusRivendare: Add boss module (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 5, 2024
1 parent 4e2bde2 commit c55ea4b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 6 deletions.
55 changes: 49 additions & 6 deletions Classic/Stratholme/LordAuriusRivendare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local mod, CL = BigWigs:NewBoss("Lord Aurius Rivendare", 329, 456)
if not mod then return end
mod:RegisterEnableMob(mod:Retail() and 45412 or 10440) -- Lord Aurius Rivendare, Baron Rivendare
mod:SetEncounterID(484)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

--------------------------------------------------------------------------------
-- Localization
Expand All @@ -23,25 +23,68 @@ end

function mod:GetOptions()
return {

17473, -- Raise Dead
17471, -- Death Pact
17434, -- Shadow Bomb
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_START", "RaiseDead", 17473)
else -- Classic
self:Log("SPELL_SUMMON", "RaiseDeadSummon", 17475) -- no cast event on Classic, use one of the summon events
end
self:RegisterEvent("CHAT_MSG_MONSTER_EMOTE")
self:Log("SPELL_CAST_START", "ShadowBomb", 17434)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 45412)
end
end

function mod:OnEngage()
if self:Retail() then
self:CDBar(17473, 6.1) -- Raise Dead
else -- Classic
self:CDBar(17473, 7.1) -- Raise Dead
end
self:CDBar(17434, 18.2) -- Shadow Bomb
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:RaiseDead(args)
self:Message(args.spellId, "cyan") -- Raise Dead
self:CDBar(args.spellId, 15.8) -- Raise Dead
-- Death Pact occurs 12s after the summon, which is 1s after cast start
self:Bar(17471, 13.0) -- Death Pact
self:PlaySound(args.spellId, "info") -- Raise Dead
end

function mod:CHAT_MSG_MONSTER_EMOTE(_, msg)
if msg:find(L.death_pact_trigger, nil, true) then
self:Message(17471, "yellow") -- Death Pact
self:StopBar(17471) -- Death Pact
end
end

function mod:ShadowBomb(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 30.4)
self:PlaySound(args.spellId, "alert")
end

--------------------------------------------------------------------------------
-- Classic Event Handlers
--

function mod:RaiseDeadSummon()
self:Message(17473, "cyan") -- Raise Dead
self:CDBar(17473, 15.8) -- Raise Dead
-- Death Pact occurs 12s after the summon
self:Bar(17471, 12.0) -- Death Pact
self:PlaySound(17473, "info") -- Raise Dead
end
3 changes: 3 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ BigWigs:AddColors("Postmaster Malown", {
})

BigWigs:AddColors("Lord Aurius Rivendare", {
[17434] = "red",
[17471] = "yellow",
[17473] = "cyan",
})
2 changes: 2 additions & 0 deletions Classic/Stratholme/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ BigWigs:AddSounds("Postmaster Malown", {
})

BigWigs:AddSounds("Lord Aurius Rivendare", {
[17434] = "alert",
[17473] = "info",
})

0 comments on commit c55ea4b

Please sign in to comment.