Skip to content

Commit

Permalink
Classic/KarazhanCrypts/Kharon: Add boss module (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Feb 8, 2025
1 parent d896a32 commit b19cdf9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Classic/KarazhanCrypts/Kharon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,65 @@ end

function mod:GetOptions()
return {
{1217694, "CASTBAR"}, -- The Red Death
1217952, -- Dreadful Visage
1218038, -- Inhume
1218089, -- Illimitable Dominion
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "TheRedDeath", 1217694)
self:Log("SPELL_CAST_START", "DreadfulVisage", 1217952)
self:Log("SPELL_CAST_START", "Inhume", 1218038)
self:Log("SPELL_AURA_APPLIED", "InhumeApplied", 1218038)
self:Log("SPELL_CAST_START", "IllimitableDominion", 1218089)
self:Log("SPELL_AURA_APPLIED", "IllimitableDominionApplied", 1218089)
end

function mod:OnEngage()
self:CDBar(1217694, 20.8) -- The Red Death
self:CDBar(1217952, 30.6) -- Dreadful Visage
self:CDBar(1218038, 32.6) -- Inhume
self:CDBar(1218089, 40.3) -- Illimitable Dominion
end

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

function mod:TheRedDeath(args)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 4.5)
self:CDBar(args.spellId, 30.7)
self:PlaySound(args.spellId, "warning")
end

function mod:DreadfulVisage(args)
self:Message(args.spellId, "cyan")
self:CDBar(args.spellId, 64.7)
self:PlaySound(args.spellId, "info")
end

function mod:Inhume(args)
self:CDBar(args.spellId, 64.7)
end

function mod:InhumeApplied(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
if self:Me(args.destGUID) then
self:PlaySound(args.spellId, "info", nil, args.destName)
else
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end
end

function mod:IllimitableDominion(args)
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 82.5)
end

function mod:IllimitableDominionApplied(args)
self:TargetMessage(args.spellId, "orange", args.destName)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
4 changes: 4 additions & 0 deletions Classic/KarazhanCrypts/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ BigWigs:AddColors("Harbinger of Sin", {
})

BigWigs:AddColors("Kharon", {
[1217694] = "red",
[1217952] = "cyan",
[1218038] = {"blue","yellow"},
[1218089] = {"blue","orange"},
})

BigWigs:AddColors("Unk'omon", {
Expand Down
4 changes: 4 additions & 0 deletions Classic/KarazhanCrypts/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ BigWigs:AddSounds("Harbinger of Sin", {
})

BigWigs:AddSounds("Kharon", {
[1217694] = "warning",
[1217952] = "info",
[1218038] = {"alarm","info"},
[1218089] = "alert",
})

BigWigs:AddSounds("Unk'omon", {
Expand Down

0 comments on commit b19cdf9

Please sign in to comment.