From bcc3f2483a1a64b722c0f13c49eb97dfbbff627e Mon Sep 17 00:00:00 2001 From: Markolie Date: Sun, 27 Sep 2015 08:43:08 +0200 Subject: [PATCH] Prevent shadowlings from hatching in lockers --- code/game/gamemodes/shadowling/special_shadowling_abilities.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm index bb4fc80c7d6..05ae972cec0 100644 --- a/code/game/gamemodes/shadowling/special_shadowling_abilities.dm +++ b/code/game/gamemodes/shadowling/special_shadowling_abilities.dm @@ -13,6 +13,8 @@ var/list/possibleShadowlingNames = list("U'ruan", "Y`shej", "Nex", "Hel-uae", "N /obj/effect/proc_holder/spell/targeted/shadowling_hatch/cast(list/targets) if(usr.stat || !ishuman(usr) || !usr) return + if(!isturf(usr.loc)) + usr << "You can't hatch here!" for(var/mob/living/carbon/human/H in targets) var/hatch_or_no = alert(H,"Are you sure you want to hatch? You cannot undo this!",,"Yes","No") switch(hatch_or_no)