local mod	= DBM:NewMod(529, "DBM-Party-BC", 1, 248)
local L		= mod:GetLocalizedStrings()

mod:SetRevision("20200220142801")
mod:SetCreatureID(17537, 17307)
mod:SetEncounterID(1892)

mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
	"SPELL_AURA_APPLIED 30689",
	"SPELL_AURA_REMOVED 30689"
--	"UNIT_DIED"
)

local warnMark      = mod:NewTargetNoFilterAnnounce(30689)

local specwarnMark  = mod:NewSpecialWarningYou(30689, nil, nil, nil, 1, 2)
local yellMark		= mod:NewYell(30689)

local timerMark     = mod:NewTargetTimer(6, 30689, nil, nil, nil, 3)

function mod:SPELL_AURA_APPLIED(args)
	if args.spellId == 30689 then
		timerMark:Start(args.destName)
		if args:IsPlayer() then
            specwarnMark:Show()
            specwarnMark:Play("targetyou")
            yellMark:Yell()
        else
			warnMark:Show(args.destName)
        end
	end
end

function mod:SPELL_AURA_REMOVED(args)
	if args.spellId == 30689 then
		timerMark:Stop(args.destName)
	end
end
--[[
function mod:UNIT_DIED(args)
	if self:GetCIDFromGUID(args.destGUID) == 17537 then
		DBM:EndCombat(self)
	end
end--]]
