mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Fixes #5446
This commit is contained in:
@@ -310,7 +310,7 @@ This function restores all organs.
|
||||
|
||||
//Embedded object code.
|
||||
if(!organ) return
|
||||
if(istype(used_weapon,/obj/item))
|
||||
if(istype(used_weapon,/obj/item) && !istype(used_weapon.loc,/mob/living/silicon/robot))
|
||||
var/obj/item/W = used_weapon //Sharp objects will always embed if they do enough damage.
|
||||
if((damage > (10*W.w_class)) || ((sharp && !ismob(W.loc)) || prob(damage/W.w_class)))
|
||||
organ.embed(W)
|
||||
|
||||
Reference in New Issue
Block a user