Fixes hallucinations not processing on humans. (#21368)

I am pretty sure this was broken for over a year

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2025-09-20 22:28:40 +00:00
committed by GitHub
co-authored by Matt Atlas
parent fbae36ba08
commit 7cb5ec23b2
2 changed files with 61 additions and 2 deletions
+3 -2
View File
@@ -756,8 +756,9 @@
silent = 0
return 1
if(hallucination && (HAS_TRAIT(src, TRAIT_BYPASS_HALLUCINATION_RESTRICTION) || !(species.flags & NO_POISON|IS_PLANT)))
handle_hallucinations()
if(hallucination)
if(HAS_TRAIT(src, TRAIT_BYPASS_HALLUCINATION_RESTRICTION) || !((species.flags & NO_POISON) && (species.flags & IS_PLANT)))
handle_hallucinations()
if(get_shock() >= species.total_health)
if(!stat && !paralysis)