From 61a4e37466b937a4f598ddcf09e4f22db8714d71 Mon Sep 17 00:00:00 2001 From: yashaldie Date: Mon, 3 Mar 2014 01:18:31 -0500 Subject: [PATCH] fixes IPC brain surgery could not start the brain surgery on IPCs this should fix it --- code/modules/surgery/generic.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/generic.dm b/code/modules/surgery/generic.dm index 9ebf546d44..949d2b77c9 100644 --- a/code/modules/surgery/generic.dm +++ b/code/modules/surgery/generic.dm @@ -15,6 +15,8 @@ return 0 if (affected.status & ORGAN_DESTROYED) return 0 + if (target_zone == "head" && target.species && (target.species.flags & IS_SYNTHETIC)) + return 1 if (affected.status & ORGAN_ROBOT) return 0 return 1 @@ -219,4 +221,4 @@ user.visible_message("\red [user]'s hand slips, sawwing through the bone in [target]'s [affected.display_name] with \the [tool]!", \ "\red Your hand slips, sawwing through the bone in [target]'s [affected.display_name] with \the [tool]!") affected.createwound(CUT, 30) - affected.fracture() \ No newline at end of file + affected.fracture()