Skip to content

Commit

Permalink
Classic/KarazhanCrypts/Unkomon: Add boss module (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Feb 8, 2025
1 parent b19cdf9 commit 39fd018
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classic/KarazhanCrypts/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ BigWigs:AddColors("Kharon", {
})

BigWigs:AddColors("Unk'omon", {
[1220515] = "red",
[1221577] = {"blue","yellow"},
[1221578] = "green",
})

BigWigs:AddColors("Dark Rider", {
Expand Down
3 changes: 3 additions & 0 deletions Classic/KarazhanCrypts/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ BigWigs:AddSounds("Kharon", {
})

BigWigs:AddSounds("Unk'omon", {
[1220515] = "alert",
[1221577] = "alarm",
[1221578] = "info",
})

BigWigs:AddSounds("Dark Rider", {
Expand Down
34 changes: 34 additions & 0 deletions Classic/KarazhanCrypts/Unkomon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,49 @@ end

function mod:GetOptions()
return {
{1221577, "DISPEL"}, -- Doom
1220515, -- Shadow Bolt Volley
1221578, -- Mark of the Master
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "Doom", 1221577)
self:Log("SPELL_AURA_APPLIED", "DoomApplied", 1221577)
self:Log("SPELL_CAST_START", "ShadowBoltVolley", 1220515)
self:Log("SPELL_CAST_SUCCESS", "MarkOfTheMaster", 1221578)
end

function mod:OnEngage()
self:CDBar(1221577, 10.1) -- Doom
self:CDBar(1220515, 12.4) -- Shadow Bolt Volley
end

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

function mod:Doom(args)
self:CDBar(args.spellId, 32.4)
end

function mod:DoomApplied(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, "alarm", nil, args.destName)
end
end

function mod:ShadowBoltVolley(args)
if self:MobId(args.sourceGUID) == 238678 then -- Unk'omon
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 14.6)
self:PlaySound(args.spellId, "alert")
end
end

function mod:MarkOfTheMaster(args)
-- cast on defeat
self:Message(args.spellId, "green", CL.on_group:format(args.spellName))
self:PlaySound(args.spellId, "info")
end

0 comments on commit 39fd018

Please sign in to comment.