You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

local mod = DBM:NewMod(102, "DBM-Party-Cataclysm", 9, 65)
local L = mod:GetLocalizedStrings()
mod.statTypes = "normal,heroic,timewalker"
mod:SetRevision("20220920232426")
mod:SetCreatureID(40765)
mod:SetEncounterID(1044)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 76094 76100 76026",
"SPELL_CAST_START 76047 76100"
)
local warnDarkFissure = mod:NewSpellAnnounce(76047, 4)
local warnSqueeze = mod:NewTargetNoFilterAnnounce(76026, 3)
local warnEnrage = mod:NewSpellAnnounce(76100, 2, nil, "Tank")
local specWarnCurse = mod:NewSpecialWarningDispel(76094, "RemoveCurse", nil, 2, 1, 2)
local specWarnFissure = mod:NewSpecialWarningDodge(76047, "Tank", nil, nil, 1, 2)
local timerDarkFissureCD = mod:NewCDTimer(18.4, 76047, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)
local timerSqueeze = mod:NewTargetTimer(6, 76026, nil, nil, nil, 5, nil, DBM_COMMON_L.DAMAGE_ICON)
local timerSqueezeCD = mod:NewCDTimer(29, 76026, nil, nil, nil, 3)
local timerEnrage = mod:NewBuffActiveTimer(10, 76100, nil, "Tank", 2, 5)
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 76094 and self:CheckDispelFilter("curse") then
specWarnCurse:Show(args.destName)
specWarnCurse:Play("helpdispel")
elseif args.spellId == 76100 then
timerEnrage:Start()
elseif args.spellId == 76026 then
warnSqueeze:Show(args.destName)
timerSqueeze:Start(args.destName)
timerSqueezeCD:Start()
end
end
function mod:SPELL_CAST_START(args)
if args.spellId == 76047 then
if self.Options.SpecWarn76047dodge then
specWarnFissure:Show()
specWarnFissure:Play("shockwave")
else
warnDarkFissure:Show()
end
timerDarkFissureCD:Start()
elseif args.spellId == 76100 then
warnEnrage:Show()
end
end