local deathDragon = CreatureEvent("DeathDragon")
function deathDragon.onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
	if not targetMonster or creature:getName():lower() ~= "death dragon" then
		return true
	end

	local monster = addEvent(Game.createMonster, 1 * 1000, "death dragon", creature:getPosition(), true, true)
	if not monster then
		return true
	end

	local spectators = Game.getSpectators(creature:getPosition(), false, false, 10, 10, 10, 10)
	for i = 1, #spectators do
		local spectator = spectators[i]
		if spectator:isMonster() and spectator:getName():lower() == "ragiaz" then
			spectator:say("Ragiaz power revives his minion!", TALKTYPE_MONSTER_SAY)
			return true
		end
	end
	return true
end

deathDragon:register()
