diff --git a/Classic/Deadmines/Options/Colors.lua b/Classic/Deadmines/Options/Colors.lua index ca490192b..0711c287a 100644 --- a/Classic/Deadmines/Options/Colors.lua +++ b/Classic/Deadmines/Options/Colors.lua @@ -3,6 +3,9 @@ BigWigs:AddColors("Rhahk'Zor", { }) BigWigs:AddColors("Sneed", { + [5141] = "cyan", + [6713] = "purple", + [7399] = "yellow", }) BigWigs:AddColors("Gilnid", { diff --git a/Classic/Deadmines/Options/Sounds.lua b/Classic/Deadmines/Options/Sounds.lua index 7eb6e9251..3ff2d29a6 100644 --- a/Classic/Deadmines/Options/Sounds.lua +++ b/Classic/Deadmines/Options/Sounds.lua @@ -3,6 +3,9 @@ BigWigs:AddSounds("Rhahk'Zor", { }) BigWigs:AddSounds("Sneed", { + [5141] = "long", + [6713] = "alert", + [7399] = "info", }) BigWigs:AddSounds("Gilnid", { diff --git a/Classic/Deadmines/Sneed.lua b/Classic/Deadmines/Sneed.lua index e5c3d8227..40b34baef 100644 --- a/Classic/Deadmines/Sneed.lua +++ b/Classic/Deadmines/Sneed.lua @@ -1,13 +1,16 @@ -if BigWigsLoader.isRetail and select(4, GetBuildInfo()) < 110005 then return end -- XXX remove check when 11.0.5 is live -------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Sneed", 36, 2626) if not mod then return end -mod:RegisterEnableMob(643) -- Sneed +mod:RegisterEnableMob( + 642, -- Sneed's Shredder + 643 -- Sneed +) mod:SetEncounterID(mod:Retail() and 2968 or 2742) --mod:SetRespawnTime(0) +mod:SetStage(1) -------------------------------------------------------------------------------- -- Initialization @@ -15,25 +18,45 @@ mod:SetEncounterID(mod:Retail() and 2968 or 2742) function mod:GetOptions() return { - + -- Sneed's Shredder + 7399, -- Terrify + 5141, -- Eject Sneed + -- Sneed + 6713, -- Disarm } end function mod:OnBossEnable() - if self:Retail() then - self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames - end + self:Log("SPELL_CAST_SUCCESS", "Terrify", 7399) + self:Log("SPELL_CAST_SUCCESS", "EjectSneed", 5141) + self:Log("SPELL_CAST_SUCCESS", "Disarm", 6713) end function mod:OnEngage() + self:SetStage(1) + self:CDBar(7399, 0.8) -- Terrify end -------------------------------------------------------------------------------- -- Event Handlers -- -function mod:ENCOUNTER_START(_, id) -- XXX no boss frames - if id == self.engageId then - self:Engage() - end +function mod:Terrify(args) + self:Message(args.spellId, "yellow") + self:CDBar(args.spellId, 10.9) + self:PlaySound(args.spellId, "info") +end + +function mod:EjectSneed(args) + self:StopBar(7399) -- Terrify + self:SetStage(2) + self:Message(args.spellId, "cyan") + self:CDBar(6713, 4.0) -- Disarm + self:PlaySound(args.spellId, "long") +end + +function mod:Disarm(args) + self:Message(args.spellId, "purple") + self:CDBar(args.spellId, 70.2) + self:PlaySound(args.spellId, "alert") end