Skip to content

Commit

Permalink
Classic/KarazhanCrypts/HansAndGreta: Add boss module (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Feb 8, 2025
1 parent 4a91675 commit 634340c
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
64 changes: 64 additions & 0 deletions Classic/KarazhanCrypts/HansAndGreta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,29 @@ end

function mod:GetOptions()
return {
-- Hans
1222570, -- Umbral Slash
1222567, -- War Stomp
-- Greta
1223456, -- Bounding Shadow
1222578, -- Sleep
}, {
[1222570] = L.hans,
[1223456] = L.greta,
}
end

function mod:OnBossEnable()
-- Hans
self:Log("SPELL_CAST_START", "UmbralSlash", 1222570)
self:Log("SPELL_CAST_START", "WarStomp", 1222567)
self:Death("HansDeath", 238422)

-- Greta
self:Log("SPELL_CAST_START", "BoundingShadow", 1223456)
self:Log("SPELL_CAST_START", "Sleep", 1222578)
self:Log("SPELL_AURA_APPLIED", "SleepApplied", 1222578)
self:Death("GretaDeath", 238423)
end

--function mod:OnEngage()
Expand All @@ -46,3 +65,48 @@ end
--------------------------------------------------------------------------------
-- Event Handlers
--

-- Hans

function mod:UmbralSlash(args)
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 22.7)
self:PlaySound(args.spellId, "alert")
end

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

function mod:HansDeath()
self:StopBar(1222570) -- Umbral Slash
self:StopBar(1222567) -- War Stomp
end

-- Greta

function mod:BoundingShadow(args)
self:Message(args.spellId, "yellow")
--self:CDBar(args.spellId, 100) -- TODO unknown CD
self:PlaySound(args.spellId, "alert")
end

function mod:Sleep(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
--self:CDBar(args.spellId, 100) -- TODO unknown CD
self:PlaySound(args.spellId, "alert")
end

function mod:SleepApplied(args)
if self:Me(args.destGUID) or self:Dispeller("magic", nil, args.spellId) then
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "info", nil, args.destName)
end
end

function mod:GretaDeath()
self:StopBar(1223456) -- Bounding Shadow
self:StopBar(1222578) -- Sleep
end
4 changes: 4 additions & 0 deletions Classic/KarazhanCrypts/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ BigWigs:AddColors("Trizivast", {
})

BigWigs:AddColors("Hans and Greta", {
[1222567] = "orange",
[1222570] = "purple",
[1222578] = {"blue","red","yellow"},
[1223456] = "yellow",
})

BigWigs:AddColors("Goblins", {
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 @@ -35,6 +35,10 @@ BigWigs:AddSounds("Trizivast", {
})

BigWigs:AddSounds("Hans and Greta", {
[1222567] = "alarm",
[1222570] = "alert",
[1222578] = {"alert","info"},
[1223456] = "alert",
})

BigWigs:AddSounds("Goblins", {
Expand Down

0 comments on commit 634340c

Please sign in to comment.