Merge pull request #15005 from BlueWildrose/ihavenomouthandimustslime

Blacklists incapacitated mobs from being sentience event candidates
This commit is contained in:
silicons
2021-08-15 00:20:11 -07:00
committed by GitHub
+1 -1
View File
@@ -37,7 +37,7 @@
continue
if(L.mob_biotypes & blacklisted_biotypes) //hey can you don't
continue
if(!(L in GLOB.player_list) && !L.mind)
if(!(L in GLOB.player_list) && !L.mind && !L.incapacitated())
potential += L
if(!potential.len)