From 48014e48972179229e1c6a54a7a95127e42f3605 Mon Sep 17 00:00:00 2001 From: AnturK Date: Wed, 24 Feb 2016 18:50:20 +0100 Subject: [PATCH] Fixes wizard spell check --- code/modules/spells/spell.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm index b46d9f4a49c..fb71988da4e 100644 --- a/code/modules/spells/spell.dm +++ b/code/modules/spells/spell.dm @@ -71,9 +71,8 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin if(!(src in user.mob_spell_list)) return 0 - if(user.z == ZLEVEL_CENTCOM && !centcom_cancast) //Certain spells are not allowed on the centcom zlevel - return 0 - if(user.z == ZLEVEL_CENTCOM && ticker.mode.name == "ragin' mages") + var/turf/T = get_turf(user) + if(T.z == ZLEVEL_CENTCOM && (!centcom_cancast || ticker.mode.name == "ragin' mages")) //Certain spells are not allowed on the centcom zlevel return 0 if(!skipcharge)