local mod	= DBM:NewMod("NaxxTrash", "DBM-Raids-Vanilla", 1)
local L		= mod:GetLocalizedStrings()

mod:SetRevision("20260601033555")
mod:DisableHardcodedOptions()
mod.isTrashMod = true
mod:SetZone(533)

mod:RegisterEvents(
	"SPELL_CAST_SUCCESS 19134 27990 28431 28440",
	"SPELL_SUMMON 28294"
)

local warnIntimidatingShout		= mod:NewSpellAnnounce(19134, 2)
local warnFear					= mod:NewSpellAnnounce(27990, 2)
local specWarnLightningTotem	= mod:NewSpecialWarningSwitch(28294, "Dps", nil, nil, 3, 2, nil, nil, "attacktotem")
local warnPoisonCharge			= mod:NewSpellAnnounce(28431, 2)
local warnVeilofShadow			= mod:NewSpellAnnounce(28440, 2, nil, "RemoveCurse|Healer")

function mod:SPELL_SUMMON(args)
	if args:IsSpell(28294) then -- Happens ~1 time per trash pack, no antispam in case you pull two packs and both summon shortly after each other
		specWarnLightningTotem:Show()
		specWarnLightningTotem:Play("attacktotem")
	end
end

function mod:SPELL_CAST_SUCCESS(args)
	if args:IsSpell(19134) and self:AntiSpam(3) then
		warnIntimidatingShout:Show()
	elseif args:IsSpell(27990) and self:AntiSpam(5) then
		warnFear:Show()
	elseif args:IsSpell(28431) and self:AntiSpam(3, 1) then
		warnPoisonCharge:Show()
	elseif args:IsSpell(28440) and self:AntiSpam(6, 2) then
		warnVeilofShadow:Show()
	end
end
