mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Actually fixes medical item runtimes
They never checked whether the limb you're targeting actually exists, which caused all sorts of runtimes all over the place
This commit is contained in:
@@ -28,7 +28,11 @@
|
||||
if(!M.can_inject(user, 1))
|
||||
return 1
|
||||
|
||||
if(affecting && (affecting.status & ORGAN_ROBOT))
|
||||
if(!affecting)
|
||||
user << "<span class='danger'>That limb is missing!</span>"
|
||||
return 1
|
||||
|
||||
if(affecting.status & ORGAN_ROBOT)
|
||||
user << "<span class='danger'>This can't be used on a robotic limb.</span>"
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user