mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user