Fixes fly infusion deleting the last infused organ upon activation (#92267)

## About The Pull Request

Closes #92234

## Changelog
🆑
fix: Fixed fly infusion deleting the last infused organ upon activation
/🆑
This commit is contained in:
SmArtKar
2025-07-30 09:22:32 +02:00
committed by GitHub
parent 111f986070
commit efd8b7200a
7 changed files with 34 additions and 17 deletions
@@ -578,13 +578,13 @@
bonus_deactivate_text = span_notice("You can no longer force open airlocks with your bare hands.")
required_biotype = NONE
/datum/status_effect/organ_set_bonus/strongarm/enable_bonus()
/datum/status_effect/organ_set_bonus/strongarm/enable_bonus(obj/item/organ/inserted_organ)
. = ..()
if(!.)
return
owner.AddElement(/datum/element/door_pryer, pry_time = 6 SECONDS, interaction_key = DOAFTER_SOURCE_STRONGARM_INTERACTION)
/datum/status_effect/organ_set_bonus/strongarm/disable_bonus()
/datum/status_effect/organ_set_bonus/strongarm/disable_bonus(obj/item/organ/removed_organ)
. = ..()
owner.RemoveElement(/datum/element/door_pryer, pry_time = 6 SECONDS, interaction_key = DOAFTER_SOURCE_STRONGARM_INTERACTION)