From 0077b3ef6a0e2f5e6cc0c3b6751751026b05525c Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Tue, 1 Aug 2023 21:30:06 +0200 Subject: [PATCH] dd --- code/modules/psionics/abilities/grip.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/psionics/abilities/grip.dm b/code/modules/psionics/abilities/grip.dm index 7354d83213f..4f9735a16dd 100644 --- a/code/modules/psionics/abilities/grip.dm +++ b/code/modules/psionics/abilities/grip.dm @@ -29,10 +29,14 @@ return if(world.time < next_squeeze_time) return + if(!length(get_line(user, victim))) + to_chat(user, SPAN_WARNING("You need to have direct line of sight to your target!")) + return . = ..() if(!.) return user.visible_message(SPAN_WARNING("[user] squeezes [user.get_pronoun("his")] hand!"), SPAN_WARNING("You squeeze your hand to tighten the psionic force around [victim].")) + log_and_message_admins("[key_name(owner)] has psionically crushed [victim]", owner, get_turf(owner)) to_chat(victim, SPAN_DANGER(FONT_HUGE("You are crushed by an invisible force!"))) victim.apply_damage(20, DAMAGE_BRUTE, armor_pen = 15, def_zone = BP_HEAD) victim.SetStunned(2)