fixes IPC brain surgery

could not start the brain surgery on IPCs this should fix it
This commit is contained in:
yashaldie
2014-03-03 01:18:31 -05:00
parent 3d7b7a937c
commit 61a4e37466

View File

@@ -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()
affected.fracture()