From 6122fc5ecfb43facd0073a2a731434a7dc162928 Mon Sep 17 00:00:00 2001 From: Return Date: Sun, 29 Sep 2024 01:09:25 -0500 Subject: [PATCH] [Mirror] Makes medibots ignore wounded synths (#2147) ## About The Pull Request Ports https://github.com/NovaSector/NovaSector/pull/4260 ## Why It's Good For The Game See link ## Proof Of Testing ## Changelog :cl: FlufflesTheDog (code), ReturnToZender (port) fix: A restraining order has been placed on medibots on behalf of synthetic crew members due to reports of harassment. /:cl: --- code/modules/mob/living/basic/bots/medbot/medbot_ai.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/basic/bots/medbot/medbot_ai.dm b/code/modules/mob/living/basic/bots/medbot/medbot_ai.dm index f0b2f089cb6..81680380d10 100644 --- a/code/modules/mob/living/basic/bots/medbot/medbot_ai.dm +++ b/code/modules/mob/living/basic/bots/medbot/medbot_ai.dm @@ -56,6 +56,10 @@ search_range = (mode_flags & MEDBOT_STATIONARY_MODE) ? 1 : initial(search_range) var/list/ignore_keys = controller.blackboard[BB_TEMPORARY_IGNORE_LIST] for(var/mob/living/carbon/human/treatable_target in oview(search_range, controller.pawn)) + // BUBBER EDIT ADDITION START - Don't hunt down synthetics + if(treatable_target.mob_biotypes & MOB_ROBOTIC) + continue + // BUBBER EDIT ADDITION END if(LAZYACCESS(ignore_keys, treatable_target) || treatable_target.stat == DEAD) continue if((access_flags & BOT_COVER_EMAGGED) && treatable_target.stat == CONSCIOUS)