Fixes Wizard spell lack-of-clothing spam

This commit is contained in:
Krausus
2015-06-10 23:10:53 -04:00
parent e6d9d2ef39
commit 5fdc311f50
-3
View File
@@ -370,13 +370,10 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin
var/obj/effect/proc_holder/spell/wizard/noclothes/clothcheck2 = locate() in user.mind.spell_list
if(clothes_req && !(clothcheck && istype(clothcheck)) && !(clothcheck2 && istype(clothcheck2)))//clothes check
if(!istype(H.wear_suit, /obj/item/clothing/suit/wizrobe) && !istype(H.wear_suit, /obj/item/clothing/suit/space/rig/wizard))
user << "I don't feel strong enough without my robe."
return 0
if(!istype(H.shoes, /obj/item/clothing/shoes/sandal))
user << "I don't feel strong enough without my sandals."
return 0
if(!istype(H.head, /obj/item/clothing/head/wizard) && !istype(H.head, /obj/item/clothing/head/helmet/space/rig/wizard))
user << "<span class='notice'>I don't feel strong enough without my hat.</span>"
return 0
else
if(clothes_req)