From 33fc3ce1e0313189acc9d69bb4b45f69bf3f1bac Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Mon, 6 Apr 2020 07:05:33 +0200 Subject: [PATCH] Update spell.dm --- code/modules/spells/spell.dm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm index 9452722183..1799a61406 100644 --- a/code/modules/spells/spell.dm +++ b/code/modules/spells/spell.dm @@ -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, "You shouldn't have this spell! Something's wrong.") 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))