local mod	= DBM:NewMod("FenrustheDevourer", "DBM-Party-Classic", 14)
local L		= mod:GetLocalizedStrings()

mod:SetRevision("20190903232637")
mod:SetCreatureID(4274)

mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
	"SPELL_CAST_SUCCESS 7125",
	"SPELL_AURA_APPLIED 7125"
)

local warningToxicSaliva				= mod:NewTargetNoFilterAnnounce(7125, 2, nil, "RemovePoison")

local timerToxicSalivaCD				= mod:NewAITimer(180, 7125, nil, nil, nil, 3, nil, DBM_CORE_POISON_ICON)

function mod:OnCombatStart(delay)
	timerToxicSalivaCD:Start(1-delay)
end

do
	local ToxicSaliva = DBM:GetSpellInfo(7125)
	function mod:SPELL_CAST_SUCCESS(args)
		--if args.spellId == 7125 then
		if args.spellName == ToxicSaliva then
			timerToxicSalivaCD:Start()
		end
	end

	function mod:SPELL_AURA_APPLIED(args)
		--if args.spellId == 7125 and self:CheckDispelFilter() then
		if args.spellName == ToxicSaliva and self:CheckDispelFilter() then
			warningToxicSaliva:Show(args.destName)
		end
	end
end
