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
926 B
33 lines
926 B
local mod = DBM:NewMod("Bazzalan", "DBM-Party-Vanilla", 9)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20231012014002")
|
|
mod:SetCreatureID(11519)
|
|
--mod:SetEncounterID(1445)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_SUCCESS 744",
|
|
"SPELL_AURA_APPLIED 744"
|
|
)
|
|
|
|
local warningDeadlyPoison = mod:NewTargetNoFilterAnnounce(744, 2, nil, "RemovePoison")
|
|
|
|
local timerDeadlyPoisonCD = mod:NewAITimer(180, 744, nil, "RemovePoison", nil, 5, nil, DBM_COMMON_L.POISON_ICON)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerDeadlyPoisonCD:Start(1-delay)
|
|
end
|
|
|
|
function mod:SPELL_CAST_SUCCESS(args)
|
|
if args:IsSpell(744) and args:IsSrcTypeHostile() then
|
|
timerDeadlyPoisonCD:Start()
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args:IsSpell(744) and args:IsDestTypePlayer() and self:CheckDispelFilter("poison") then
|
|
warningDeadlyPoison:Show(args.destName)
|
|
end
|
|
end
|
|
|