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.
40 lines
1.3 KiB
40 lines
1.3 KiB
local mod = DBM:NewMod("Jergosh", "DBM-Party-Vanilla", 9)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20231012014002")
|
|
mod:SetCreatureID(11518)
|
|
--mod:SetEncounterID(1444)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_SUCCESS 18267 20800",
|
|
"SPELL_AURA_APPLIED 18267 20800"
|
|
)
|
|
|
|
local warningCurseofWeakness = mod:NewTargetNoFilterAnnounce(18267, 2)
|
|
local warningImmolate = mod:NewTargetNoFilterAnnounce(20800, 2, nil, "Healer|RemoveMagic")
|
|
|
|
local timerCurseofWeaknessCD = mod:NewAITimer(180, 18267, nil, nil, nil, 3, nil, DBM_COMMON_L.CURSE_ICON)
|
|
local timerImmolateCD = mod:NewAITimer(180, 20800, nil, "Healer|RemoveMagic", nil, 5, nil, DBM_COMMON_L.MAGIC_ICON)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerCurseofWeaknessCD:Start(1-delay)
|
|
timerImmolateCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args:IsSpell(18267) and args:IsSrcTypeHostile() then
|
|
timerCurseofWeaknessCD:Start()
|
|
elseif args:IsSpell(20800) and args:IsSrcTypeHostile() then
|
|
timerImmolateCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args:IsSpell(18267) and args:IsDestTypePlayer() then
|
|
warningCurseofWeakness:Show(args.destName)
|
|
elseif args:IsSpell(20800) and args:IsDestTypePlayer() then
|
|
warningImmolate:Show(args.destName)
|
|
end
|
|
end
|
|
|