From a6ece100db0589c3fe62d7122766cb7e5a5d42aa Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Sun, 1 Dec 2024 18:45:00 -0500 Subject: [PATCH] Classic/DireMaul/KingGordok: Add boss module (#1225) --- Classic/DireMaul/KingGordok.lua | 46 ++++++++++++++++++++++++----- Classic/DireMaul/Options/Colors.lua | 4 +++ Classic/DireMaul/Options/Sounds.lua | 4 +++ 3 files changed, 46 insertions(+), 8 deletions(-) diff --git a/Classic/DireMaul/KingGordok.lua b/Classic/DireMaul/KingGordok.lua index b7b855054..62b8ba3d1 100644 --- a/Classic/DireMaul/KingGordok.lua +++ b/Classic/DireMaul/KingGordok.lua @@ -6,7 +6,7 @@ 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 @@ -14,25 +14,55 @@ mod:SetEncounterID(368) 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 diff --git a/Classic/DireMaul/Options/Colors.lua b/Classic/DireMaul/Options/Colors.lua index 302419cea..010c089b5 100644 --- a/Classic/DireMaul/Options/Colors.lua +++ b/Classic/DireMaul/Options/Colors.lua @@ -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", { diff --git a/Classic/DireMaul/Options/Sounds.lua b/Classic/DireMaul/Options/Sounds.lua index 474dc0d5b..3769acffe 100644 --- a/Classic/DireMaul/Options/Sounds.lua +++ b/Classic/DireMaul/Options/Sounds.lua @@ -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", {