Skip to content

Commit

Permalink
Classic/Stratholme/BaronessAnastari: Add boss module (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 5, 2024
1 parent 760e38d commit 3e99b9d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7 deletions.
52 changes: 45 additions & 7 deletions Classic/Stratholme/BaronessAnastari.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,71 @@ local mod, CL = BigWigs:NewBoss("Baroness Anastari", 329, 451)
if not mod then return end
mod:RegisterEnableMob(10436) -- Baroness Anastari
mod:SetEncounterID(479)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

17244, -- Possess
18327, -- Silence
{16867, "DISPEL"}, -- Banshee Curse
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_AURA_APPLIED", "PossessApplied", 17244) -- no cast event
self:Log("SPELL_AURA_REMOVED", "PossessRemoved", 17244)
self:Log("SPELL_CAST_START", "Silence", 18327)
self:Log("SPELL_CAST_SUCCESS", "BansheeCurse", 16867)
self:Log("SPELL_AURA_APPLIED", "BansheeCurseApplied", 16867)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 10436)
end
end

function mod:OnEngage()
self:CDBar(16867, 4.9) -- Banshee Curse
self:CDBar(18327, 7.3) -- Silence
if not self:Solo() then
self:CDBar(17244, 7.3) -- Possess
end
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:PossessApplied(args)
self:StopBar(args.spellId)
self:StopBar(18327) -- Silence
self:StopBar(16867) -- Banshee Curse
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "warning", nil, args.destName)
end

function mod:PossessRemoved(args)
self:Message(args.spellId, "green", CL.over:format(args.spellName))
self:CDBar(args.spellId, 32.4)
self:PlaySound(args.spellId, "info")
end

function mod:Silence(args)
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 15.8)
self:PlaySound(args.spellId, "alarm")
end

function mod:BansheeCurse(args)
self:CDBar(args.spellId, 8.5)
end

function mod:BansheeCurseApplied(args)
if self:Me(args.destGUID) or self:Dispeller("curse", nil, args.spellId) then
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "info", nil, args.destName)
end
end
3 changes: 3 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ BigWigs:AddColors("Balnazzar", {
})

BigWigs:AddColors("Baroness Anastari", {
[16867] = {"blue","yellow"},
[17244] = {"blue","green","yellow"},
[18327] = "orange",
})

BigWigs:AddColors("Nerub'enkan", {
Expand Down
3 changes: 3 additions & 0 deletions Classic/Stratholme/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ BigWigs:AddSounds("Balnazzar", {
})

BigWigs:AddSounds("Baroness Anastari", {
[16867] = "info",
[17244] = {"info","warning"},
[18327] = "alarm",
})

BigWigs:AddSounds("Nerub'enkan", {
Expand Down

0 comments on commit 3e99b9d

Please sign in to comment.