Non-verbal Ghost Hearing Fix (#8570)

Ghosts can now hear non-verbal speaking from afar without stars appearing.

Fixes #7749
This commit is contained in:
Geeves
2020-03-31 17:50:24 +03:00
committed by GitHub
parent ce733180ad
commit b84e22bbbf
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
//non-verbal languages are garbled if you can't see the speaker. Yes, this includes if they are inside a closet.
if (language && (language.flags & NONVERBAL))
if (!speaker || (src.sdisabilities & BLIND || src.blinded) || !(speaker in view(src)))
if((!speaker || (src.sdisabilities & BLIND || src.blinded) || !(speaker in view(src))) && !isobserver(src))
message = stars(message)
if(!(language && (language.flags & INNATE))) // skip understanding checks for INNATE languages