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 Waterpig
parent e75964a608
commit 2cea49ace2

View File

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