mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fixes embed surgery on IPCs not working (#21848)
* Fixes embed surgery on synths not working * Oops * owner -> victim
This commit is contained in:
@@ -169,6 +169,9 @@
|
||||
parent.children = list()
|
||||
parent.children.Add(src)
|
||||
|
||||
if(owner.has_embedded_objects())
|
||||
owner.throw_alert("embeddedobject", /obj/screen/alert/embeddedobject)
|
||||
|
||||
/obj/item/organ/external/attempt_become_organ(obj/item/organ/external/parent,mob/living/carbon/human/H)
|
||||
if(parent_organ != parent.limb_name)
|
||||
return FALSE
|
||||
@@ -781,11 +784,11 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
I.forceMove(src)
|
||||
RegisterSignal(I, COMSIG_MOVABLE_MOVED, PROC_REF(remove_embedded_object))
|
||||
|
||||
if(!owner.has_embedded_objects())
|
||||
owner.clear_alert("embeddedobject")
|
||||
|
||||
. = ..()
|
||||
|
||||
if(!victim.has_embedded_objects())
|
||||
victim.clear_alert("embeddedobject")
|
||||
|
||||
// Attached organs also fly off.
|
||||
if(!ignore_children)
|
||||
for(var/obj/item/organ/external/O in children)
|
||||
|
||||
Reference in New Issue
Block a user