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.

39 lines
985 B

local mod = DBM:NewMod(90, "DBM-Party-Cataclysm", 2, 63)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20200806142123")
mod:SetCreatureID(47296, 47297)
mod:SetEncounterID(1065)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 88352",
"SPELL_CAST_SUCCESS 59304"
)
local warnChestBomb = mod:NewTargetNoFilterAnnounce(88352, 4)
local warnSpiritStrike = mod:NewSpellAnnounce(59304, 3)
local specWarnChestBomb = mod:NewSpecialWarningMoveAway(88352, nil, nil, nil, 1, 2)
local timerChestBomb = mod:NewTargetTimer(10, 88352, nil, nil, nil, 3)
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 88352 then
timerChestBomb:Start(args.destName)
if args:IsPlayer() then
specWarnChestBomb:Show()
specWarnChestBomb:Play("runout")
else
warnChestBomb:Show(args.destName)
end
end
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 59304 then
warnSpiritStrike:Show()
end
end