local mod = DBM:NewMod(2461, "DBM-Sepulcher", nil, 1195) local L = mod:GetLocalizedStrings() mod:SetRevision("20220302130450") mod:SetCreatureID(184901) mod:SetEncounterID(2539) mod:SetUsedIcons(1, 2) mod:SetHotfixNoticeRev(20220301000000) mod:SetMinSyncRevision(20220301000000) --mod.respawnTime = 29 mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 362601 363130 364652 363088 365257 366001 368027", "SPELL_CAST_SUCCESS 363795 363676", "SPELL_AURA_APPLIED 362622 366012 363537 363795 363676 364312 363130 361200 368025 368024 368738",--364092 "SPELL_AURA_APPLIED_DOSE 368024", "SPELL_AURA_REMOVED 363537 363795 363676 364312 363130 361200",--362622 366012 (mote Ids maybe?) -- "SPELL_PERIODIC_DAMAGE", -- "SPELL_PERIODIC_MISSED", "RAID_BOSS_WHISPER" -- "UNIT_DIED", -- "UNIT_SPELLCAST_SUCCEEDED boss1" ) --TODO, wait for blizzard to add mote debuffs into combat log, redundant RBW will cover it for now --TODO, Any add timers? they almost seemed inconsiquential (at least timer wise) --TODO, announce when cast begins for Reorginate, or when it ends and who it's on? --TODO, Degenerate is no longer in combat log --[[ (ability.id = 362601 or ability.id = 363130 or ability.id = 364652 or ability.id = 363088 or ability.id = 368027) and type = "begincast" or (ability.id = 363795 or ability.id = 363676) and type = "cast" or ability.id = 361200 or ability.id = 363130 or ability.id = 365257 and type = "begincast" --]] --Boss local warnSynthesize = mod:NewCountAnnounce(363130, 3) local warnResonance = mod:NewSpellAnnounce(368027, 3, nil, "Tank") local warnKineticResonance = mod:NewStackAnnounce(368024, 2, nil, "Tank|Healer") --Adds --local warnDegenerate = mod:NewTargetNoFilterAnnounce(364092, 4, nil, false)--Kinda spammy, but healer might want to opt into it local warnFormSentry = mod:NewSpellAnnounce(365257, 2) --Boss ----Mythic local specWarnHarmonicAlignment = mod:NewSpecialWarningYou(368738, nil, nil, nil, 1, 12, 4) local specWarnMelodicAlignment = mod:NewSpecialWarningYou(368740, nil, nil, nil, 1, 12, 4) local specWarnCosmicShift = mod:NewSpecialWarningSpell(363088, nil, nil, nil, 2, 2) local specWarnUnstableMote = mod:NewSpecialWarningYou(362622, nil, nil, nil, 1, 2) local specWarnProtoformCascade = mod:NewSpecialWarningDodge(364652, nil, nil, nil, 1, 2) local specWarnResonance = mod:NewSpecialWarningDefensive(368027, false, nil, nil, 1, 2) local specWarnResonanceTaunt = mod:NewSpecialWarningTaunt(368025, nil, nil, nil, 1, 2) local specWarnDeconstructingEnergy = mod:NewSpecialWarningYou(363795, nil, nil, nil, 1, 2) local specWarnDeconstructingEnergyTaunt = mod:NewSpecialWarningTaunt(363795, nil, nil, nil, 1, 2) local yellDeconstructingEnergy = mod:NewYell(363795) local yellDeconstructingEnergyFades = mod:NewShortFadesYell(363795) --Adds ----Degeneration Automa --local specWarnDegenerate = mod:NewSpecialWarningYou(364092, nil, nil, nil, 1, 2) --local specWarnDespair = mod:NewSpecialWarningInterrupt(357144, "HasInterrupt", nil, nil, 1, 2) --local specWarnGTFO = mod:NewSpecialWarningGTFO(340324, nil, nil, nil, 1, 8) --Boss --mod:AddTimerLine(BOSS) local timerUnstableMoteCD = mod:NewCDCountTimer(20.6, 362622, nil, nil, nil, 3) local timerUnstableMote = mod:NewBuffFadesTimer(5.9, 362622, nil, nil, nil, 5)--1.9+4 local timerProtoformRadiance = mod:NewBuffActiveTimer(28.8, 363537, nil, nil, nil, 2) local timerProtoformCascadeCD = mod:NewCDCountTimer(10.9, 364652, nil, nil, nil, 3) local timerResonanceCD = mod:NewCDCountTimer(41.2, 368027, nil, "Tank", nil, 5, nil, DBM_COMMON_L.TANK_ICON) local timerCosmicShiftCD = mod:NewCDCountTimer(20.3, 363088, nil, nil, nil, 3) local timerDeconstructingEnergyCD = mod:NewCDCountTimer(37.2, 363795, nil, nil, nil, 3) local timerSynthesizeCD = mod:NewCDCountTimer(101, 363130, nil, nil, nil, 6) local timerSynthesize = mod:NewBuffActiveTimer(20, 363130, nil, nil, nil, 6, nil, DBM_COMMON_L.DAMAGE_ICON) local timerRecharge = mod:NewBuffActiveTimer(20, 361200, nil, nil, nil, 6) local berserkTimer = mod:NewBerserkTimer(480) --Adds --mod:AddRangeFrameOption("8") --mod:AddInfoFrameOption(328897, true) mod:AddSetIconOption("SetIconOnDeconstructingEnergy", 363795, true, false, {1, 2}) mod:AddNamePlateOption("NPAuraOnEphemeralBarrier", 364312, true) mod:GroupSpells(368027, 368025, 368024)--Group responance debuffs together mod:GroupSpells(363088, 368738, 368740)--Group mythic debuffs together with cosmic shift (https://ptr.wowhead.com/spell=362659/alignment-shift) mod.vb.energyIcon = 1 mod.vb.moteCount = 0 mod.vb.synthesizeCount = 0 mod.vb.cascadeCount = 0 mod.vb.cosmicCount = 0 mod.vb.deconstructCount = 0 mod.vb.resonanceCount = 0 mod.vb.timerMode = 1 local difficultyName = "None" local allTimers = { ["easy"] = {--Normal and LFR combined (for now) [1] = {--Engage --Unstable Mote [362601] = {12.1, 31.5, 31.5}, --Protoform Cascade [364652] = {5.7, 31.5, 31.5, 23}, --Cosmic Shift [363088] = {29, 23, 31.5}, --Deconstructing Energy [363676] = {20.5, 40, 38.8}, }, [2] = {--After Realignment --Unstable Mote [362601] = {12.4, 31.5, 31.5}, --Protoform Cascade [364652] = {6.4, 31.5, 31.5, 23}, --Cosmic Shift [363088] = {29.4, 23.1, 31.5}, --Deconstructing Energy [363676] = {20.9, 40, 38.8}, }, }, ["heroic"] = { [1] = {--Engage --Unstable Mote [362601] = {12.1, 37.7, 43.7}, --Protoform Cascade [364652] = {5.7, 31.6, 43.8},--Sometimes this bugs and is 5.8, 70 --Resonance [368027] = {38.7, 43.7}, --Cosmic Shift [363088] = {29, 43.8},--or 29 and 29, when this happens it triggers the 5.8 and 70 on cascade --Deconstructing Energy [363676] = {20.5, 46.2}, }, [2] = {--After Realignment --Unstable Mote [362601] = {12.4, 43.8, 43.8}, --Protoform Cascade [364652] = {6.4, 31.6, 43.8}, --Resonance [368027] = {44.5, 43.8}, --Cosmic Shift [363088] = {29.4, 43.8}, --Deconstructing Energy [363676] = {20.9, 43.8}, }, }, ["mythic"] = {--Mythic should be same as heroic minus first engage timers being shorter. But we'll see if that's changed [1] = {--Engage --Unstable Mote [362601] = {12.1}, --Protoform Cascade [364652] = {5.7},--Sometimes this bugs and is 5.8, 70 --Resonance [368027] = {}, --Cosmic Shift [363088] = {29},--or 29 and 29, when this happens it triggers the 5.8 and 70 on cascade --Deconstructing Energy [363676] = {20.5}, }, [2] = {--After Realignment --Unstable Mote [362601] = {12.9, 43.8, 43.8}, --Protoform Cascade [364652] = {6.8, 31.6, 43.8}, --Resonance [368027] = {44.5, 43.8}, --Cosmic Shift [363088] = {29.9, 43.8}, --Deconstructing Energy [363676] = {21.4, 43.8}, }, }, } function mod:OnCombatStart(delay) self.vb.energyIcon = 1 self.vb.moteCount = 0 self.vb.synthesizeCount = 0 self.vb.cascadeCount = 0 self.vb.cosmicCount = 0 self.vb.deconstructCount = 0 self.vb.resonanceCount = 0 self.vb.timerMode = 1 timerProtoformCascadeCD:Start(5.1-delay, 1)--5-6 timerUnstableMoteCD:Start(12-delay, 1) timerDeconstructingEnergyCD:Start(20.5-delay, 1) timerCosmicShiftCD:Start(29-delay, 1) timerSynthesizeCD:Start(self:IsMythic() and 31 or 100-delay, 1) if self:IsMythic() then difficultyName = "mythic" elseif self:IsHeroic() then difficultyName = "heroic" timerResonanceCD:Start(43-delay, 1)--Maybe shorter timer on non mythic, else not cast until next cycle else difficultyName = "easy" end berserkTimer:Start(480-delay)--On heroic at least -- if self.Options.InfoFrame then -- DBM.InfoFrame:SetHeader(DBM:GetSpellInfo(328897)) -- DBM.InfoFrame:Show(10, "table", ExsanguinatedStacks, 1) -- end if self.Options.NPAuraOnEphemeralBarrier then DBM:FireEvent("BossMod_EnableHostileNameplates") end end function mod:OnCombatEnd() -- if self.Options.InfoFrame then -- DBM.InfoFrame:Hide() -- end if self.Options.NPAuraOnEphemeralBarrier then DBM.Nameplate:Hide(true, nil, nil, nil, true, true) end end function mod:OnTimerRecovery() if self:IsMythic() then difficultyName = "mythic" elseif self:IsHeroic() then difficultyName = "heroic" else difficultyName = "easy" end end function mod:SPELL_CAST_START(args) local spellId = args.spellId if spellId == 362601 then self.vb.moteCount = self.vb.moteCount + 1 local timer = allTimers[difficultyName][self.vb.timerMode][spellId][self.vb.moteCount+1] if timer then timerUnstableMoteCD:Start(timer, self.vb.moteCount+1) end timerUnstableMote:Start() elseif spellId == 363130 then if self.vb.timerMode == 1 then self.vb.timerMode = 2 end self.vb.synthesizeCount = self.vb.synthesizeCount + 1 warnSynthesize:Show(self.vb.synthesizeCount) --stop some boss timers here timerUnstableMoteCD:Stop() timerProtoformCascadeCD:Stop() timerDeconstructingEnergyCD:Stop() timerCosmicShiftCD:Stop() timerResonanceCD:Stop() elseif spellId == 364652 then self.vb.cascadeCount = self.vb.cascadeCount + 1 if self:IsTanking("player", "boss1", nil, true) then specWarnProtoformCascade:Show() specWarnProtoformCascade:Play("defensive") end local timer = allTimers[difficultyName][self.vb.timerMode][spellId][self.vb.cascadeCount+1] if timer then timerProtoformCascadeCD:Start(timer, self.vb.cascadeCount+1) end elseif spellId == 363088 then self.vb.cosmicCount = self.vb.cosmicCount + 1 specWarnCosmicShift:Show() specWarnCosmicShift:Play("carefly") local timer = allTimers[difficultyName][self.vb.timerMode][spellId][self.vb.cosmicCount+1] if timer then timerCosmicShiftCD:Start(timer, self.vb.cosmicCount+1) end elseif spellId == 365257 and self:AntiSpam(5, 1) then warnFormSentry:Show() elseif spellId == 368027 then self.vb.resonanceCount = self.vb.resonanceCount + 1 if self.Options.SpecWarn368027defensive and self:IsTanking("player", "boss1", nil, true) then specWarnResonance:Show() specWarnResonance:Play("defensive") else warnResonance:Show() end local timer = allTimers[difficultyName][self.vb.timerMode][spellId][self.vb.resonanceCount+1] if timer then timerResonanceCD:Start(timer, self.vb.resonanceCount+1) end end end function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 363795 or spellId == 363676 then self.vb.energyIcon = 1 self.vb.deconstructCount = self.vb.deconstructCount + 1 local timer = allTimers[difficultyName][self.vb.timerMode][spellId][self.vb.deconstructCount+1] if timer then timerDeconstructingEnergyCD:Start(timer, self.vb.deconstructCount+1) end end end function mod:SPELL_AURA_APPLIED(args) local spellId = args.spellId if (spellId == 362622 or spellId == 366012) and self:AntiSpam(4, args.destName.."1") then if args:IsPlayer() and self:AntiSpam(3, 2) then specWarnUnstableMote:Show() specWarnUnstableMote:Play("targetyou") end elseif spellId == 363537 then timerProtoformRadiance:Start() elseif spellId == 363795 or spellId == 363676 then--363676 goes on tank, 363795 goes on dps local icon = self.vb.energyIcon if self.Options.SetIconOnDeconstructingEnergy then self:SetIcon(args.destName, icon) end if args:IsPlayer() then specWarnDeconstructingEnergy:Show() specWarnDeconstructingEnergy:Play("runout") yellDeconstructingEnergy:Yell(icon, icon) yellDeconstructingEnergyFades:Countdown(spellId, nil, icon) else local uId = DBM:GetRaidUnitId(args.destName) if self:IsTanking(uId) then specWarnDeconstructingEnergyTaunt:Show(args.destName) specWarnDeconstructingEnergyTaunt:Play("tauntboss") end end self.vb.energyIcon = self.vb.energyIcon + 1 -- elseif spellId == 364092 and self:AntiSpam(3, args.destName) then -- warnDegenerate:CombinedShow(1, args.destName) -- if args:IsPlayer() then -- specWarnDegenerate:Show() -- specWarnDegenerate:Play("defensive") -- end elseif spellId == 364312 and args:IsDestTypeHostile() then if self.Options.NPAuraOnEphemeralBarrier then DBM.Nameplate:Show(true, args.destGUID, spellId) end elseif spellId == 363130 then timerSynthesize:Start(self:IsMythic() and 15 or 20) elseif spellId == 368025 then if not args:IsPlayer() then specWarnResonanceTaunt:Show() specWarnResonanceTaunt:Play("tauntboss") end elseif spellId == 368024 then local uId = DBM:GetRaidUnitId(args.destName) if self:IsTanking(uId) then warnKineticResonance:Show(args.destName, args.amount or 1) end elseif spellId == 361200 then timerRecharge:Start(30) elseif spellId == 368738 and args:IsPlayer() then specWarnHarmonicAlignment:Show() specWarnHarmonicAlignment:Play("harmonic") elseif spellId == 368740 and args:IsPlayer() then specWarnMelodicAlignment:Show() specWarnMelodicAlignment:Play("melodic") end end mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED function mod:SPELL_AURA_REMOVED(args) local spellId = args.spellId if spellId == 363537 then timerProtoformRadiance:Stop() elseif spellId == 363795 or spellId == 363676 then if self.Options.SetIconOnDeconstructingEnergy then self:SetIcon(args.destName, 0) end if args:IsPlayer() then yellDeconstructingEnergyFades:Cancel() end elseif spellId == 364312 and args:IsDestTypeHostile() then if self.Options.NPAuraOnEphemeralBarrier then DBM.Nameplate:Hide(true, args.destGUID, spellId) end elseif spellId == 363130 then timerSynthesize:Stop() elseif spellId == 361200 then--Recharge self.vb.moteCount = 0 self.vb.cascadeCount = 0 self.vb.cosmicCount = 0 self.vb.deconstructCount = 0 self.vb.resonanceCount = 0 timerRecharge:Stop() --Restart boss timers -- if self:IsMythic() then timerProtoformCascadeCD:Start(6.4, 1) timerUnstableMoteCD:Start(12.4, 1) timerDeconstructingEnergyCD:Start(20.9, 1) timerCosmicShiftCD:Start(29.4, 1) if self:IsHard() then timerResonanceCD:Start(44.5, 1) end timerSynthesizeCD:Start(101.1, self.vb.synthesizeCount+1) -- else -- timerDeconstructingEnergyCD:Start(1)--Started elsewhere since it's used instantly here -- timerUnstableMoteCD:Start(2)--Same reason as above -- timerCosmicShiftCD:Start(6.7) -- timerProtoformCascadeCD:Start(15.2) -- timerSynthesizeCD:Start(65) -- end end end function mod:RAID_BOSS_WHISPER(msg) if msg:find("362622") and self:AntiSpam(3, 2) then specWarnUnstableMote:Show() specWarnUnstableMote:Play("targetyou") end end --[[ function mod:UNIT_DIED(args) local cid = self:GetCIDFromGUID(args.destGUID) if cid == 184735 or cid == 182053 or cid == 182197 then--degeneration-automa elseif cid == 184737 or cid == 182074 then--acquisitions-automa elseif cid == 182071 or cid == 184738 or cid == 182285 then--guardian-automa elseif cid == 184126 or cid == 184135 then--defense-matrix-automa end end -]] --[[ function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spellName) if spellId == 340324 and destGUID == UnitGUID("player") and not playerDebuff and self:AntiSpam(2, 4) then specWarnGTFO:Show(spellName) specWarnGTFO:Play("watchfeet") end end mod.SPELL_PERIODIC_MISSED = mod.SPELL_PERIODIC_DAMAGE function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId) if spellId == 353193 then end end --]]