Skip to content

Commit

Permalink
Classic/DireMaul/Immolthar: Add boss module (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 9547497 commit 1123f82
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 6 deletions.
64 changes: 58 additions & 6 deletions Classic/DireMaul/Immolthar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,85 @@ local mod, CL = BigWigs:NewBoss("Immol'thar", 429, 409)
if not mod then return end
mod:RegisterEnableMob(11496) -- Immol'thar
mod:SetEncounterID(349)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

451127, -- Eyes of Immol'thar
{452516, "HEALER"}, -- Trample
22950, -- Portal of Immol'thar
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_SUCCESS", "EyesOfImmolthar", 451127)
self:Log("SPELL_CAST_SUCCESS", "Trample", 452516)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 11496)
end
else -- Classic
self:Log("SPELL_CAST_SUCCESS", "EyesOfImmolthar", 22899) -- Eye of Immolthar
self:Log("SPELL_CAST_SUCCESS", "Trample", 5568)
end
self:Log("SPELL_CAST_SUCCESS", "PortalOfImmolthar", 22950)
end

function mod:OnEngage()
self:CDBar(451127, 6.1) -- Eyes of Immol'thar
self:CDBar(452516, 7.0) -- Trample
self:CDBar(22950, 13.7) -- Portal of Immol'thar
end

--------------------------------------------------------------------------------
-- Classic Initialization
--

if mod:Classic() then
function mod:GetOptions()
return {
22899, -- Eye of Immol'thar
{5568, "HEALER"}, -- Trample
22950, -- Portal of Immol'thar
}
end

function mod:OnEngage()
self:CDBar(5568, 6.5) -- Trample
self:CDBar(22899, 11.3) -- Eye of Immol'thar
self:CDBar(22950, 12.9) -- Portal of Immol'thar
end
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:EyesOfImmolthar(args) -- Eye of Immol'thar on Classic
self:Message(args.spellId, "cyan")
if self:Retail() then
self:CDBar(args.spellId, 20.7)
else -- Classic
self:CDBar(args.spellId, 9.7)
end
self:PlaySound(args.spellId, "info")
end

function mod:Trample(args)
-- also cast by trash
if self:MobId(args.sourceGUID) == 11496 then -- Immol'thar
self:Message(args.spellId, "orange")
self:CDBar(args.spellId, 7.3)
end
end

function mod:PortalOfImmolthar(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
self:CDBar(args.spellId, 12.1)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
5 changes: 5 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ BigWigs:AddColors("Magister Kalendris", {
})

BigWigs:AddColors("Immol'thar", {
[5568] = "orange",
[22899] = "cyan",
[22950] = {"blue","yellow"},
[451127] = "cyan",
[452516] = "orange",
})

BigWigs:AddColors("Prince Tortheldrin", {
Expand Down
3 changes: 3 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ BigWigs:AddSounds("Magister Kalendris", {
})

BigWigs:AddSounds("Immol'thar", {
[22899] = "info",
[22950] = "alert",
[451127] = "info",
})

BigWigs:AddSounds("Prince Tortheldrin", {
Expand Down

0 comments on commit 1123f82

Please sign in to comment.