Fixes a runtime on eye removal (#87475)

## About The Pull Request

Fixes https://github.com/tgstation/tgstation/issues/87474

## Why It's Good For The Game

Being unable to remove eyes if there is scarring is bad.

## Changelog
🆑
fix: Fixes a runtime when trying to remove someones scarred eyes. Now
you can remove them!
/🆑
This commit is contained in:
necromanceranne
2024-10-28 01:15:11 +11:00
committed by GitHub
parent a0fbeaf469
commit c8a6fc88f8

View File

@@ -285,9 +285,9 @@
/obj/item/organ/internal/eyes/on_mob_remove(mob/living/carbon/eye_owner)
. = ..()
if (scarring)
owner.cure_nearsighted(TRAIT_RIGHT_EYE_SCAR)
owner.cure_nearsighted(TRAIT_LEFT_EYE_SCAR)
owner.cure_blind(EYE_SCARRING_TRAIT)
eye_owner.cure_nearsighted(TRAIT_RIGHT_EYE_SCAR)
eye_owner.cure_nearsighted(TRAIT_LEFT_EYE_SCAR)
eye_owner.cure_blind(EYE_SCARRING_TRAIT)
#undef OFFSET_X
#undef OFFSET_Y