anchor.diff:  				break
   
   		if(theghost)
  -			var/mob/living/carbon/human/new_character=makeBody(theghost)
  +			var/mob/living/carbon/human/new_character= makeBody(theghost)
   			new_character.mind.make_Wizard()
  +			making_mage = 0
   			return 1
   
   /datum/game_mode/wizard/raginmages/declare_completion()
   	if(finished)
   		feedback_set_details("round_end_result","loss - wizard killed")
  -		world << "<color=red FONT size=3><B> The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!</B></FONT>"
  +		world << "<FONT size=3><B>The crew has managed to hold off the wizard attack! The Space Wizards Federation has been taught a lesson they will not soon forget!</B></FONT>"
   	..(1)
   
   /datum/game_mode/wizard/raginmages/proc/makeBody(var/mob/dead/observer/G_found) // Uses stripped down and bastardized code from respawn character
  
positive.code: 		for(var/mob/living/player in mob_list)
  			if (player.client && player.stat != 2)
  				playercount += 1
  			max_mages = round(playercount / 5)
  
  /datum/game_mode/wizard/raginmages/greet_wizard(var/datum/mind/wizard, var/you_are=1)
  	if (you_are)
  		wizard.current << "<B><color=red>You are the Space Wizard!</font></B>"
  	wizard.current << "<B>The Space Wizards Federation has given you the following tasks:</B>"
  
  	var/obj_count = 1
  
negative.code: 	mages_made++
  	var/list/mob/dead/observer/candidates = list()
  	var/mob/dead/observer/theghost = null
  	spawn(rand(100, 200))
  		message_admins("SWF is still pissed, sending another wizard - [max_mages - mages_made] left.")
  		for(var/mob/dead/observer/G in player_list)
  			if(G.client && !G.client.holder && !G.client.is_afk() && G.client.prefs.be_special & BE_WIZARD)
  				if(!jobban_isbanned(G, "wizard") && !jobban_isbanned(G, "Syndicate"))
  					candidates += G
  		if(!candidates.len)
  			message_admins("No applicable ghosts for the next ragin' mage, asking ghosts instead.")
  			var/time_passed = world.time
  			for(var/mob/dead/observer/G in player_list)
  				if(!jobban_isbanned(G, "wizard") && !jobban_isbanned(G, "Syndicate"))
  					spawn(0)
  						switch(alert(G, "Do you wish to be considered for the position of Space Wizard Foundation 'diplomat'?","Please answer in 30 seconds!","Yes","No"))
  							if("Yes")
  								if((world.time-time_passed)>300)//If more than 30 game seconds passed.
  									continue
  								candidates += G
  							if("No")
  								continue
  
  			sleep(300)
  		if(!candidates.len)
  			message_admins("This is awkward, sleeping until another mage check...")
  			making_mage = 0
  			mages_made--
  			return
  