Skip to content

Commit

Permalink
Classic/DireMaul/MagisterKalendris: Add boss module (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 1123f82 commit 598fa3d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
28 changes: 20 additions & 8 deletions Classic/DireMaul/MagisterKalendris.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,45 @@ local mod, CL = BigWigs:NewBoss("Magister Kalendris", 429, 408)
if not mod then return end
mod:RegisterEnableMob(11487) -- Magister Kalendris
mod:SetEncounterID(348)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

22917, -- Shadowform
7645, -- Dominate Mind
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_SUCCESS", "Shadowform", 22917)
self:Log("SPELL_CAST_SUCCESS", "DominateMind", 7645)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 11487)
end
end

function mod:OnEngage()
if not self:Solo() then
self:CDBar(7645, 10.2) -- Dominate Mind
end
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
end
function mod:Shadowform(args)
self:Message(args.spellId, "cyan", CL.percent:format(50, args.spellName))
self:PlaySound(args.spellId, "info")
end

function mod:DominateMind(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
self:CDBar(args.spellId, 19.4)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
2 changes: 2 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ BigWigs:AddColors("Illyanna Ravenoak", {
})

BigWigs:AddColors("Magister Kalendris", {
[7645] = {"blue","yellow"},
[22917] = "cyan",
})

BigWigs:AddColors("Immol'thar", {
Expand Down
2 changes: 2 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ BigWigs:AddSounds("Illyanna Ravenoak", {
})

BigWigs:AddSounds("Magister Kalendris", {
[7645] = "alert",
[22917] = "info",
})

BigWigs:AddSounds("Immol'thar", {
Expand Down

0 comments on commit 598fa3d

Please sign in to comment.