Merge pull request #4518 from yashaldie/master

fixes IPC brain surgery
This commit is contained in:
Chinsky
2014-03-04 18:18:33 +04:00
+3 -1
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()