From ddd644631266edaa8cf24e74c7dd33cd32d8128b Mon Sep 17 00:00:00 2001 From: BeebBeebBoob Date: Wed, 8 Jan 2025 06:25:01 +0300 Subject: [PATCH] bugfix: Blind AI while carding regains sight back (#6333) * bugfix: Blind AI while carding regains sight back * oops --- code/modules/mob/living/silicon/ai/ai.dm | 1 + code/modules/mob/living/silicon/ai/update_status.dm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index c2f2b0ed6cd..b221298d294 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -1335,6 +1335,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( on_the_card = TRUE aiRestorePowerRoutine = 0//So the AI initially has power. update_blind_effects() + update_sight() control_disabled = TRUE//Can't control things remotely if you're stuck in a card! aiRadio.disabledAi = TRUE //No talking on the built-in radio for you either! forceMove(card) //Throw AI into the card. diff --git a/code/modules/mob/living/silicon/ai/update_status.dm b/code/modules/mob/living/silicon/ai/update_status.dm index 989330dedfc..c351e0ee6ce 100644 --- a/code/modules/mob/living/silicon/ai/update_status.dm +++ b/code/modules/mob/living/silicon/ai/update_status.dm @@ -10,4 +10,4 @@ ..() /mob/living/silicon/ai/has_vision(information_only = FALSE) - return ..() && !lacks_power() + return ..() && (!lacks_power() || on_the_card)