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.
42 lines
1.2 KiB
42 lines
1.2 KiB
|
3 years ago
|
local mod = DBM:NewMod(473, "DBM-Party-Vanilla", 13, 239)
|
||
|
|
local L = mod:GetLocalizedStrings()
|
||
|
|
|
||
|
|
mod:SetRevision("20221029204017")
|
||
|
|
mod:SetCreatureID(2748)
|
||
|
|
mod:SetEncounterID(554)
|
||
|
|
|
||
|
|
mod:RegisterCombat("combat")
|
||
|
|
|
||
|
|
mod:RegisterEventsInCombat(
|
||
|
|
"SPELL_CAST_START 10252 10258",
|
||
|
|
"SPELL_CAST_SUCCESS 6524"
|
||
|
|
)
|
||
|
|
|
||
|
|
local warningAwakenEarthenGuardians = mod:NewSpellAnnounce(10252, 2)
|
||
|
|
local warningAwakenVaultWarder = mod:NewSpellAnnounce(10258, 2)
|
||
|
|
local warningGroundTremor = mod:NewSpellAnnounce(6524, 3)
|
||
|
|
|
||
|
|
local timerAwakenEarthenGuardiansCD = mod:NewAITimer(180, 10252, nil, nil, nil, 1, nil, DBM_COMMON_L.DAMAGE_ICON)
|
||
|
|
local timerGroundTremorCD = mod:NewAITimer(180, 6524, nil, nil, nil, 2)
|
||
|
|
|
||
|
|
function mod:OnCombatStart(delay)
|
||
|
|
timerAwakenEarthenGuardiansCD:Start(1-delay)
|
||
|
|
timerGroundTremorCD:Start(1-delay)
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:SPELL_CAST_START(args)
|
||
|
|
if args.spellId == 10252 then
|
||
|
|
warningAwakenEarthenGuardians:Show()
|
||
|
|
timerAwakenEarthenGuardiansCD:Start()
|
||
|
|
elseif args.spellId == 10258 then
|
||
|
|
warningAwakenVaultWarder:Show()
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
||
|
|
if args.spellId == 6524 then
|
||
|
|
warningGroundTremor:Show()
|
||
|
|
timerGroundTremorCD:Start()
|
||
|
|
end
|
||
|
|
end
|