Skip to content

Commit

Permalink
Classic/DireMaul/StomperKreeg: Add boss module (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 883ecff commit 32b9e25
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ BigWigs:AddColors("Guard Mol'dar", {
})

BigWigs:AddColors("Stomper Kreeg", {
[15578] = "yellow",
[16740] = "red",
[22833] = "purple",
[22835] = "cyan",
})

BigWigs:AddColors("Cho'Rush the Observer", {
Expand Down
4 changes: 4 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ BigWigs:AddSounds("Guard Mol'dar", {
})

BigWigs:AddSounds("Stomper Kreeg", {
[15578] = "alert",
[16740] = "alert",
[22833] = "alarm",
[22835] = "long",
})

BigWigs:AddSounds("Cho'Rush the Observer", {
Expand Down
42 changes: 34 additions & 8 deletions Classic/DireMaul/StomperKreeg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,59 @@ local mod, CL = BigWigs:NewBoss("Stomper Kreeg", 429, 412)
if not mod then return end
mod:RegisterEnableMob(14322) -- Stomper Kreeg
mod:SetEncounterID(363)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {

22833, -- Booze Spit
16740, -- War Stomp
15578, -- Whirlwind
22835, -- Drunken Rage
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
end
self:Log("SPELL_CAST_SUCCESS", "BoozeSpit", 22833)
self:Log("SPELL_CAST_SUCCESS", "WarStomp", 16740)
self:Log("SPELL_CAST_SUCCESS", "Whirlwind", 15578)
self:Log("SPELL_AURA_APPLIED", "DrunkenRageApplied", 22835)
end

function mod:OnEngage()
self:CDBar(22833, 8.3) -- Booze Spit
self:CDBar(16740, 10.7) -- War Stomp
self:CDBar(15578, 12.2) -- Whirlwind
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:BoozeSpit(args)
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 19.4)
self:PlaySound(args.spellId, "alarm")
end

function mod:WarStomp(args)
self:Message(args.spellId, "red")
self:CDBar(args.spellId, 17.0)
self:PlaySound(args.spellId, "alert")
end

function mod:Whirlwind(args)
if self:MobId(args.sourceGUID) == 14322 then -- Stomper Kreeg
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 13.4)
self:PlaySound(args.spellId, "alert")
end
end

function mod:DrunkenRageApplied(args)
self:Message(args.spellId, "cyan", CL.percent:format(50, args.spellName))
self:PlaySound(args.spellId, "long")
end

0 comments on commit 32b9e25

Please sign in to comment.