Skip to content

Commit

Permalink
Classic/Stratholme/Nerubenkan: Add boss module (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Nov 5, 2024
1 parent 3e99b9d commit c4e050a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
47 changes: 40 additions & 7 deletions Classic/Stratholme/Nerubenkan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,66 @@ local mod, CL = BigWigs:NewBoss("Nerub'enkan", 329, 452)
if not mod then return end
mod:RegisterEnableMob(10437) -- Nerub'enkan
mod:SetEncounterID(480)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

17235, -- Raise Undead Scarab
{6016, "TANK"}, -- Pierce Armor
{4962, "DISPEL"}, -- Encasing Webs
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_START", "RaiseUndeadScarab", 17235)
self:Log("SPELL_CAST_SUCCESS", "PierceArmor", 6016)
self:Log("SPELL_CAST_SUCCESS", "EncasingWebs", 4962)
self:Log("SPELL_AURA_APPLIED", "EncasingWebsApplied", 4962)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 10437)
end
end

function mod:OnEngage()
self:CDBar(4962, 6.1) -- Encasing Webs
self:CDBar(6016, 8.0) -- Pierce Armor
self:CDBar(17235, 8.5) -- Raise Undead Scarab
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
function mod:RaiseUndeadScarab(args)
self:Message(args.spellId, "cyan")
self:CDBar(args.spellId, 27.9)
self:PlaySound(args.spellId, "info")
end

function mod:PierceArmor(args)
self:Message(args.spellId, "purple")
self:CDBar(args.spellId, 8.0)
self:PlaySound(args.spellId, "alert")
end

function mod:EncasingWebs(args)
-- also cast by trash
if self:MobId(args.sourceGUID) == 10437 then -- Nerub'enkan
self:CDBar(args.spellId, 10.9)
end
end

function mod:EncasingWebsApplied(args)
-- also cast by trash
if self:MobId(args.sourceGUID) == 10437 then -- Nerub'enkan
if self:Me(args.destGUID) or self:Dispeller("magic", nil, args.spellId) or self:Dispeller("movement", nil, args.spellId) then
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end
end
end
3 changes: 3 additions & 0 deletions Classic/Stratholme/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ BigWigs:AddColors("Baroness Anastari", {
})

BigWigs:AddColors("Nerub'enkan", {
[4962] = {"blue","yellow"},
[6016] = "purple",
[17235] = "cyan",
})

BigWigs:AddColors("Maleki the Pallid", {
Expand Down
3 changes: 3 additions & 0 deletions Classic/Stratholme/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ BigWigs:AddSounds("Baroness Anastari", {
})

BigWigs:AddSounds("Nerub'enkan", {
[4962] = "alarm",
[6016] = "alert",
[17235] = "info",
})

BigWigs:AddSounds("Maleki the Pallid", {
Expand Down

0 comments on commit c4e050a

Please sign in to comment.