Skip to content

Commit

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

function mod:GetOptions()
return {
1220843, -- Cursed Webbing
{1220836, "DISPEL"}, -- Spectral Fangs
1221325, -- Burning
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "CursedWebbing", 1220843)
self:Log("SPELL_CAST_SUCCESS", "SpectralFangs", 1220836)
self:Log("SPELL_AURA_APPLIED", "SpectralFangsApplied", 1220836)
self:Log("SPELL_AURA_APPLIED_DOSE", "SpectralFangsApplied", 1220836)
self:Log("SPELL_CAST_SUCCESS", "Burning", 1221325)
end

function mod:OnEngage()
self:CDBar(1220836, 6.5) -- Spectral Fangs
self:CDBar(1220843, 6.5) -- Cursed Webbing
end

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

function mod:CursedWebbing(args)
self:Message(args.spellId, "orange")
self:CDBar(args.spellId, 16.2)
self:PlaySound(args.spellId, "alarm")
end

function mod:SpectralFangs(args)
self:CDBar(args.spellId, 20.6)
end

function mod:SpectralFangsApplied(args)
if self:Me(args.destGUID) or self:Dispeller("poison", nil, args.spellId) then
self:StackMessage(args.spellId, "purple", args.destName, args.amount, 1)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
end

function mod:Burning(args)
self:Message(args.spellId, "green", CL.onboss:format(args.spellName))
self:PlaySound(args.spellId, "long")
end
3 changes: 3 additions & 0 deletions Classic/KarazhanCrypts/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ BigWigs:AddColors("Barian Maryla", {
})

BigWigs:AddColors("Creeping Malison", {
[1220836] = {"blue","purple"},
[1220843] = "orange",
[1221325] = "green",
})

BigWigs:AddColors("Trizivast", {
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 @@ -21,6 +21,9 @@ BigWigs:AddSounds("Barian Maryla", {
})

BigWigs:AddSounds("Creeping Malison", {
[1220836] = "alert",
[1220843] = "alarm",
[1221325] = "long",
})

BigWigs:AddSounds("Trizivast", {
Expand Down

0 comments on commit d95ecbc

Please sign in to comment.