mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 03:56:27 +01:00
Small tweak
Just optimized it so it wouldn't stay being processed if the user leaves via elevator/cryo or is admin-deleted.
This commit is contained in:
@@ -403,7 +403,7 @@ obj/item/weapon/material/hatchet/tacknife/combatknife/fluff/katarina/handle_shie
|
||||
|
||||
process()
|
||||
check_owner()
|
||||
if(state > 1)
|
||||
if((state > 1) || !owner)
|
||||
processing_objects.Remove(src)
|
||||
|
||||
attack_self(mob/user as mob)
|
||||
@@ -419,7 +419,7 @@ obj/item/weapon/material/hatchet/tacknife/combatknife/fluff/katarina/handle_shie
|
||||
|
||||
proc/check_owner()
|
||||
//He's dead, jim
|
||||
if(!owner || owner.stat == DEAD)
|
||||
if((state == 1) && owner && (owner.stat == DEAD))
|
||||
update_state(2)
|
||||
audible_message("<span class='warning'>The [name] begins flashing red.</span>")
|
||||
sleep(30)
|
||||
|
||||
Reference in New Issue
Block a user