From 1feb21eed13f592809fef6c2c550859cbf32225b Mon Sep 17 00:00:00 2001 From: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Date: Thu, 2 May 2024 00:58:35 +0100 Subject: [PATCH] [FIX] Cyborgs With Guns Can Now Perform Executions (With Guns!). (#25275) * borg execution time * Update gun.dm * Update gun.dm * Update gun.dm --- code/modules/projectiles/gun.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index b195704ce15..7baf9bb6cc7 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -449,16 +449,18 @@ return FALSE return TRUE -/obj/item/gun/proc/handle_suicide(mob/living/carbon/human/user, mob/living/carbon/human/target, params) - if(!ishuman(user) || !ishuman(target)) +/obj/item/gun/proc/handle_suicide(mob/user, mob/living/carbon/human/target, params) + if(!ishuman(target)) // So only human-type mobs can be executed. return if(semicd) return if(user == target) + if(!ishuman(user)) // Borg suicide needs a refactor for this to work. + return target.visible_message("[user] sticks [src] in [user.p_their()] mouth, ready to pull the trigger...", \ - "You stick [src] in your mouth, ready to pull the trigger...") + "You stick [src] in your mouth, ready to pull the trigger...") else target.visible_message("[user] points [src] at [target]'s head, ready to pull the trigger...", \ "[user] points [src] at your head, ready to pull the trigger...")