Fixes liches losing spells

This commit is contained in:
AnturK
2017-09-29 09:27:26 +02:00
committed by CitadelStationBot
parent aaa2a214cb
commit 6411e25110
3 changed files with 5 additions and 12 deletions
-9
View File
@@ -245,15 +245,6 @@
//OTHER PROCS
//To batch-remove wizard spells. Linked to mind.dm.
/mob/proc/spellremove(mob/M)
if(!mind)
return
for(var/X in src.mind.spell_list)
var/obj/effect/proc_holder/spell/spell_to_remove = X
qdel(spell_to_remove)
mind.spell_list -= spell_to_remove
//returns whether the mob is a wizard (or apprentice)
/proc/iswizard(mob/living/M)
return istype(M) && M.mind && SSticker && SSticker.mode && ((M.mind in SSticker.mode.wizards) || (M.mind in SSticker.mode.apprentices))