mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
Fixes organs_internal:295 runtime (#15171)
Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
@@ -291,11 +291,11 @@
|
||||
add_attack_logs(user, target, "Surgically removed [I.name]. INTENT: [uppertext(user.a_intent)]")
|
||||
spread_germs_to_organ(I, user, tool)
|
||||
var/obj/item/thing = I.remove(target)
|
||||
if(!istype(thing))
|
||||
thing.forceMove(get_turf(target))
|
||||
else
|
||||
user.put_in_hands(thing)
|
||||
|
||||
if(thing) // some "organs", like egg infections, can have I.remove(target) return null, and so we can't use "thing" in that case
|
||||
if(istype(thing))
|
||||
user.put_in_hands(thing)
|
||||
else
|
||||
thing.forceMove(get_turf(target))
|
||||
target.update_icons()
|
||||
else
|
||||
user.visible_message("<span class='notice'>[user] can't seem to extract anything from [target]'s [parse_zone(target_zone)]!</span>",
|
||||
|
||||
Reference in New Issue
Block a user