From 4501fd316b8cc3fa6bdf67ce57e33398ed4505cc Mon Sep 17 00:00:00 2001 From: Ty-Omaha Date: Wed, 12 Dec 2018 00:31:19 -0500 Subject: [PATCH] super move --- code/game/machinery/wishgranter.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/game/machinery/wishgranter.dm b/code/game/machinery/wishgranter.dm index 3ccc50193c9..b2851129a29 100644 --- a/code/game/machinery/wishgranter.dm +++ b/code/game/machinery/wishgranter.dm @@ -65,7 +65,7 @@ else wish = input("You want to become...","Wish") as null|anything in types - if(!wish) + if(!src || !wish || user.stat == DEAD || (get_dist(src, user) > 4)) //another check after the input to check if someone already used it, closed it, or if they're dead, or if they ran off return var/datum/superheroes/S = GLOB.all_superheroes[wish] @@ -73,8 +73,6 @@ to_chat(user,"There can only be one! Pick something else!") return - if(!src || user.stat == DEAD || (get_dist(src, user) > 4)) //another check after the input to check if someone already used it, or if they're dead, or if they ran off - return S.create(user) S.activated = TRUE //sets this superhero as taken so we don't have duplicates playsound(src.loc, 'sound/effects/bamf.ogg', 50, 1)