Skip to content

Commit

Permalink
Classic/DireMaul/KingGordok: Add boss module (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 32b9e25 commit a6ece10
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 8 deletions.
46 changes: 38 additions & 8 deletions Classic/DireMaul/KingGordok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,63 @@ local mod, CL = BigWigs:NewBoss("King Gordok", 429, 417)
if not mod then return end
mod:RegisterEnableMob(11501) -- King Gordok
mod:SetEncounterID(368)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

22886, -- Berserker Charge
{15572, "TANK"}, -- Sunder Armor
{16856, "TANK_HEALER"}, -- Mortal Strike
16727, -- War Stomp
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
end
self:Log("SPELL_CAST_SUCCESS", "BerserkerCharge", 22886)
self:Log("SPELL_CAST_SUCCESS", "SunderArmor", 15572)
self:Log("SPELL_CAST_SUCCESS", "MortalStrike", 16856)
self:Log("SPELL_CAST_SUCCESS", "WarStomp", 16727)
end

function mod:OnEngage()
self:CDBar(22886, 9.4) -- Berserker Charge
self:CDBar(15572, 17.9) -- Sunder Armor
self:CDBar(16856, 19.1) -- Mortal Strike
self:CDBar(16727, 28.8) -- War Stomp
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:BerserkerCharge(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
self:CDBar(args.spellId, 18.2)
self:PlaySound(args.spellId, "info", nil, args.destName)
end

function mod:SunderArmor(args)
if self:MobId(args.sourceGUID) == 11501 then -- King Gordok
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 6.1)
self:PlaySound(args.spellId, "alert")
end
end

function mod:MortalStrike(args)
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 8.5)
self:PlaySound(args.spellId, "alarm")
end

function mod:WarStomp(args)
if self:MobId(args.sourceGUID) == 11501 then -- King Gordok
self:Message(args.spellId, "red")
self:CDBar(args.spellId, 26.7)
self:PlaySound(args.spellId, "alarm")
end
end
4 changes: 4 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ BigWigs:AddColors("Cho'Rush the Observer", {
})

BigWigs:AddColors("King Gordok", {
[15572] = "purple",
[16727] = "red",
[16856] = "purple",
[22886] = {"blue","yellow"},
})

BigWigs:AddColors("Lethtendris", {
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 @@ -45,6 +45,10 @@ BigWigs:AddSounds("Cho'Rush the Observer", {
})

BigWigs:AddSounds("King Gordok", {
[15572] = "alert",
[16727] = "alarm",
[16856] = "alarm",
[22886] = "info",
})

BigWigs:AddSounds("Lethtendris", {
Expand Down

0 comments on commit a6ece10

Please sign in to comment.