Skip to content

Commit

Permalink
bugfix: Blind AI while carding regains sight back (#6333)
Browse files Browse the repository at this point in the history
* bugfix: Blind AI while carding regains sight back

* oops
  • Loading branch information
BeebBeebBoob authored Jan 8, 2025
1 parent e29c2bd commit ddd6446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/modules/mob/living/silicon/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/silicon/ai/update_status.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
..()

/mob/living/silicon/ai/has_vision(information_only = FALSE)
return ..() && !lacks_power()
return ..() && (!lacks_power() || on_the_card)

0 comments on commit ddd6446

Please sign in to comment.