From 8c97bf858c6ebb02dcbeca4e59bbd964ec8d3384 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 3 Oct 2022 14:48:36 -0500 Subject: [PATCH] Fix spirits, robots, and megafauna being affected by hallucinations (#70263) Revenants, robots, and megafauna are no longer affected by hallucinations --- code/__HELPERS/hallucinations.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/__HELPERS/hallucinations.dm b/code/__HELPERS/hallucinations.dm index 1c860ec616b..ea6fc708ea9 100644 --- a/code/__HELPERS/hallucinations.dm +++ b/code/__HELPERS/hallucinations.dm @@ -63,6 +63,9 @@ GLOBAL_LIST_EMPTY(all_ongoing_hallucinations) if(HAS_TRAIT(nearby_living, TRAIT_MADNESS_IMMUNE) || (nearby_living.mind && HAS_TRAIT(nearby_living.mind, TRAIT_MADNESS_IMMUNE))) continue + if(nearby_living.mob_biotypes & (MOB_ROBOTIC|MOB_SPIRIT|MOB_EPIC)) + continue + if(nearby_living.is_blind()) continue