local mod = DBM:NewMod(107, "DBM-Party-Cataclysm", 1, 66) local L = mod:GetLocalizedStrings() mod.statTypes = "normal,heroic,timewalker" mod:SetRevision("20210922153837") mod:SetCreatureID(39698) mod:SetEncounterID(1039) mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 75842 75846", "SPELL_AURA_APPLIED_DOSE 75846" ) local warnObsidianArmor = mod:NewSpellAnnounce(75842, 2) local warnSuperheated = mod:NewCountAnnounce(75846, 3) local specWarnSuperheated = mod:NewSpecialWarningStack(75846, "Tank", 5, nil, nil, 1, 6) local timerSuperheated = mod:NewTimer(17, "TimerSuperheated", 75846, nil, nil, 5) function mod:OnCombatStart(delay) end function mod:SPELL_AURA_APPLIED(args) if args.spellId == 75842 then warnObsidianArmor:Show() elseif args.spellId == 75846 then timerSuperheated:Cancel()--Cancel any previous timer before starting new one. No args means it'll cancel any timer with name "timerSuperheated" timerSuperheated:Start(17, args.amount or 1) if self:AntiSpam(3) then warnSuperheated:Show(args.amount or 1) if args.amount and args.amount >= 5 then specWarnSuperheated:Show(args.amount) specWarnSuperheated:Play("stackhigh") end end end end mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED