Skip to content

Commit

Permalink
Classic/DireMaul/PrinceTortheldrin: Add boss module (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 2329b82 commit 6fc44e5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ BigWigs:AddColors("Immol'thar", {
})

BigWigs:AddColors("Prince Tortheldrin", {
[22995] = {"blue","cyan"},
[67037] = "orange",
})

BigWigs:AddColors("Guard Mol'dar", {
Expand Down
2 changes: 2 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ BigWigs:AddSounds("Immol'thar", {
})

BigWigs:AddSounds("Prince Tortheldrin", {
[22995] = "info",
[67037] = "alarm",
})

BigWigs:AddSounds("Guard Mol'dar", {
Expand Down
44 changes: 37 additions & 7 deletions Classic/DireMaul/PrinceTortheldrin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,63 @@ local mod, CL = BigWigs:NewBoss("Prince Tortheldrin", 429, 410)
if not mod then return end
mod:RegisterEnableMob(11486) -- Prince Tortheldrin
mod:SetEncounterID(361)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

22995, -- Summon
67037, -- Whirling Strike
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "Summon", 22995)
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_START", "WhirlingStrike", 67037)
end
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 11486)
end
end

function mod:OnEngage()
-- Summon is cast immediately on pull
self:CDBar(67037, 6.1) -- Whirling Strike
end

--------------------------------------------------------------------------------
-- Event Handlers
-- Classic Initialization
--

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
if mod:Classic() then
function mod:GetOptions()
return {
22995, -- Summon
}
end

function mod:OnEngage()
-- Summon is cast immediately on pull
end
end

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

function mod:Summon(args)
self:TargetMessage(args.spellId, "cyan", args.destName)
self:CDBar(args.spellId, 10.9)
self:PlaySound(args.spellId, "info", nil, args.destName)
end

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

0 comments on commit 6fc44e5

Please sign in to comment.