Update spell.dm
This commit is contained in:
@@ -436,14 +436,11 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th
|
||||
if(magic_flags & SPELL_SKIP_ALL_REQS)
|
||||
return TRUE
|
||||
|
||||
if(player_lock && (!user.mind || !(src in user.mind.spell_list)))
|
||||
if(player_lock && (!user.mind || !(src in user.mind.spell_list) && !(src in user.mob_spell_list)))
|
||||
if(!silent)
|
||||
to_chat(user, "<span class='warning'>You shouldn't have this spell! Something's wrong.</span>")
|
||||
return FALSE
|
||||
|
||||
if(!(src in user.mob_spell_list))
|
||||
return FALSE
|
||||
|
||||
if(!centcom_cancast && !(magic_flags & SPELL_SKIP_CENTCOM)) //Certain spells are not allowed on the centcom zlevel
|
||||
var/turf/T = get_turf(user)
|
||||
if(is_centcom_level(T.z))
|
||||
|
||||
Reference in New Issue
Block a user