Skip to content

Commit

Permalink
Classic/DireMaul/ZevrimThornhoof: Add boss module (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent 6fc44e5 commit 86323c4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ BigWigs:AddColors("Hydrospawn", {
})

BigWigs:AddColors("Zevrim Thornhoof", {
[17228] = "red",
[22478] = "orange",
[22651] = {"blue","yellow"},
})

BigWigs:AddColors("Alzzin the Wildshaper", {
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 @@ -49,6 +49,9 @@ BigWigs:AddSounds("Hydrospawn", {
})

BigWigs:AddSounds("Zevrim Thornhoof", {
[17228] = "alert",
[22478] = "alert",
[22651] = "alarm",
})

BigWigs:AddSounds("Alzzin the Wildshaper", {
Expand Down
41 changes: 34 additions & 7 deletions Classic/DireMaul/ZevrimThornhoof.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,60 @@ local mod, CL = BigWigs:NewBoss("Zevrim Thornhoof", 429, 402)
if not mod then return end
mod:RegisterEnableMob(11490) -- Zevrim Thornhoof
mod:SetEncounterID(343)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

22478, -- Intense Pain
22651, -- Sacrifice
17228, -- Shadow Bolt Volley
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_START", "IntensePain", 22478)
self:Log("SPELL_CAST_SUCCESS", "Sacrifice", 22651)
self:Log("SPELL_AURA_APPLIED", "SacrificeApplied", 22651)
self:Log("SPELL_CAST_START", "ShadowBoltVolley", 17228)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 11490)
end
end

function mod:OnEngage()
self:CDBar(22478, 3.7) -- Intense Pain
self:CDBar(22651, 7.1) -- Sacrifice
self:CDBar(17228, 8.3) -- Shadow Bolt Volley
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:IntensePain(args)
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 8.5)
self:PlaySound(args.spellId, "alert")
end

function mod:Sacrifice(args)
self:CDBar(args.spellId, 17.0)
end

function mod:SacrificeApplied(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end

function mod:ShadowBoltVolley(args)
if self:MobId(args.sourceGUID) == 11490 then -- Zevrim Thornhoof
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 17.0)
self:PlaySound(args.spellId, "alert")
end
end

0 comments on commit 86323c4

Please sign in to comment.