Fix spirits, robots, and megafauna being affected by hallucinations (#70263)

Revenants, robots, and megafauna are no longer affected by hallucinations
This commit is contained in:
Tim
2022-10-03 14:48:36 -05:00
committed by GitHub
parent 2893396236
commit 8c97bf858c
+3
View File
@@ -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