anchor.diff:  
   /obj/item/clothing/head/wizard/ComponentInitialize()
   	. = ..()
  -	AddElement(/datum/element/spellcasting, magic_flags, ITEM_SLOT_HEAD)
  +	if(magic_flags)
  +		AddElement(/datum/element/spellcasting, magic_flags, ITEM_SLOT_HEAD)
   
   /obj/item/clothing/head/wizard/red
   	name = "red wizard hat"
  
positive.code: 	permeability_coefficient = 1
  	armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
  	resistance_flags = FLAMMABLE
  	dog_fashion = /datum/dog_fashion/head/blue_wizard
  
  /obj/item/clothing/head/wizard/marisa
  	name = "witch hat"
  
negative.code: 	permeability_coefficient = 1
  	armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
  	resistance_flags = FLAMMABLE
  	magic_flags = NONE
  
  /obj/item/clothing/head/wizard/marisa/fake
  	gas_transfer_coefficient = 1
  	permeability_coefficient = 1
  	armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
  	resistance_flags = FLAMMABLE
  	magic_flags = NONE
  
  /obj/item/clothing/suit/wizrobe/marisa/fake
  	gas_transfer_coefficient = 1
  	permeability_coefficient = 1
  	armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
  	resistance_flags = FLAMMABLE
  	magic_flags = NONE
  
  /obj/item/clothing/suit/wizrobe/paper
  	name = "papier-mache robe" // no non-latin characters!
  