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.

34 lines
896 B

local mod = DBM:NewMod("InterrogatorVishas", "DBM-Party-Vanilla", DBM:IsPostCata() and 17 or 12)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20240316010232")
mod:SetCreatureID(3983)
mod:SetEncounterID(444)
mod:SetZone(189)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_SUCCESS 9034",
"SPELL_AURA_APPLIED 9034"
)
local warningImmolate = mod:NewTargetNoFilterAnnounce(9034, 2)
local timerImmolateCD = mod:NewAITimer(180, 9034, nil, nil, nil, 3, nil, DBM_COMMON_L.MAGIC_ICON)
function mod:OnCombatStart(delay)
timerImmolateCD:Start(1-delay)
end
function mod:SPELL_CAST_SUCCESS(args)
if args:IsSpell(9034) and args:IsSrcTypeHostile() then
timerImmolateCD:Start()
end
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpell(9034) and args:IsDestTypePlayer() then
warningImmolate:Show(args.destName)
end
end