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/LordAuriusRivendare: Add boss module #1197

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
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 @@ -39,4 +39,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 @@ -39,4 +39,6 @@ BigWigs:AddSounds("Postmaster Malown", {
})

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