From d8bd22a9a56916d3ffb12c4e7e35e2d9f35ee29c Mon Sep 17 00:00:00 2001 From: WhiteFox08 Date: Tue, 22 Sep 2015 14:57:15 -0500 Subject: [PATCH] Fixes runtimes with Dethralling / Deshadowling Thanks to @CarbonHell for finding this gem. --- code/datums/mind.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index f84c04f531a..6900db541a6 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -1059,16 +1059,14 @@ switch(href_list["shadowling"]) if("clear") ticker.mode.update_shadow_icons_removed(src) - src.spell_list = null + src.spell_list = list() if(src in ticker.mode.shadows) ticker.mode.shadows -= src special_role = null current << "Your powers have been quenched! You are no longer a shadowling!" - src.spell_list = null + src.spell_list = list() message_admins("[key_name_admin(usr)] has de-shadowling'ed [current].") log_admin("[key_name(usr)] has de-shadowling'ed [current].") - remove_spell(/obj/effect/proc_holder/spell/targeted/shadowling_hatch) - remove_spell(/obj/effect/proc_holder/spell/targeted/shadowling_ascend) else if(src in ticker.mode.thralls) ticker.mode.remove_thrall(src,0) message_admins("[key_name_admin(usr)] has de-thrall'ed [current].")