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.
41 lines
1.2 KiB
41 lines
1.2 KiB
local mod = DBM:NewMod(473, "DBM-Party-Vanilla", DBM:IsRetail() and 13 or 18, 239)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20231012014002")
|
|
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:IsSpell(10252) then
|
|
warningAwakenEarthenGuardians:Show()
|
|
timerAwakenEarthenGuardiansCD:Start()
|
|
elseif args:IsSpell(10258) then
|
|
warningAwakenVaultWarder:Show()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args:IsSpell(6524) then
|
|
warningGroundTremor:Show()
|
|
timerGroundTremorCD:Start()
|
|
end
|
|
end
|
|
|