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/DireMaul/MagisterKalendris: Add boss module #1217

Merged
merged 1 commit into from
Dec 1, 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
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 @@ -6,6 +6,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 @@ -6,6 +6,8 @@ BigWigs:AddSounds("Illyanna Ravenoak", {
})

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

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