From 422a2e6ed429f0b9e1ca44f898114dcab93e4ef8 Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Sun, 6 Mar 2016 21:59:48 -0500 Subject: [PATCH] Fixes lich spell preventing round end when viewed in the spellbook --- code/datums/spells/lichdom.dm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/code/datums/spells/lichdom.dm b/code/datums/spells/lichdom.dm index a115406548c..f63a296cec9 100644 --- a/code/datums/spells/lichdom.dm +++ b/code/datums/spells/lichdom.dm @@ -19,12 +19,6 @@ action_icon_state = "skeleton" -/obj/effect/proc_holder/spell/targeted/lichdom/New() - if(!config.continuous_rounds) - existence_stops_round_end = 1 - config.continuous_rounds = 1 - ..() - /obj/effect/proc_holder/spell/targeted/lichdom/Destroy() for(var/datum/mind/M in ticker.mode.wizards) //Make sure no other bones are about for(var/obj/effect/proc_holder/spell/S in M.spell_list) @@ -34,7 +28,11 @@ config.continuous_rounds = 0 return ..() -/obj/effect/proc_holder/spell/targeted/lichdom/cast(list/targets,mob/user = usr) +/obj/effect/proc_holder/spell/targeted/lichdom/cast(list/targets,mob/user = usr) + if(!config.continuous_rounds) + existence_stops_round_end = 1 + config.continuous_rounds = 1 + for(var/mob/M in targets) var/list/hand_items = list() if(iscarbon(M))