Fixes runtime when attempting to use farsight inside something (#96622)

## About The Pull Request

farsight only has effects on the user's client, no reason it should ever
effect anything the user's inside

## Why It's Good For The Game

<img width="573" height="97" alt="image"
src="https://github.com/user-attachments/assets/8d1c686a-c35d-40e7-9e67-186951d30fd4"
/>

## Changelog
🆑

fix: fixed a runtime when attempting to use the farsight mutation while
inside something

/🆑
This commit is contained in:
Leland Kemble
2026-06-23 16:44:32 +02:00
committed by GitHub
parent 5c39729e09
commit c2b4e9ec69
+3
View File
@@ -57,6 +57,9 @@
cooldown_time *= 0.5
build_all_button_icons(UPDATE_BUTTON_STATUS)
/datum/action/cooldown/spell/farsight/get_caster_from_target(atom/target)
return target // This ability only effect's the caster's client, no reason to try and fail to effect the closet or mech we're inside.
/datum/action/cooldown/spell/farsight/is_action_active(atom/movable/screen/movable/action_button/current_button)
return active