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.

33 lines
764 B

local mod = DBM:NewMod("Gilnid", "DBM-Party-Vanilla", 5)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20231012014002")
mod:SetCreatureID(1763)
--mod:SetEncounterID(1144)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 5213",
"SPELL_AURA_APPLIED 5213"
)
local warningMoltenMetal = mod:NewTargetNoFilterAnnounce(5213, 2)
local timerMoltenMetalCD = mod:NewAITimer(180, 5213, nil, nil, nil, 3)
function mod:OnCombatStart(delay)
timerMoltenMetalCD:Start(1-delay)
end
function mod:SPELL_CAST_SUCCESS(args)
if args:IsSpell(5213) then
timerMoltenMetalCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpell(5213) then
warningMoltenMetal:Show(args.destName)
end
end