Merge pull request #13609 from AnturK/runtimes

Fixes for few runtime errors
This commit is contained in:
tkdrg
2015-12-16 04:15:21 -03:00
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin
/obj/effect/proc_holder/spell/proc/perform(list/targets, recharge = 1, mob/user = usr) //if recharge is started is important for the trigger spells
before_cast(targets)
invocation(user)
if(user.ckey)
if(user && user.ckey)
user.attack_log += text("\[[time_stamp()]\] <span class='danger'>[user.real_name] ([user.ckey]) cast the spell [name].</span>")
spawn(0)
if(charge_type == "recharge" && recharge)