fix pull request #498 - unseen demon "looks angry"

When a potentially bribable demon lord becomes angry because the
hero is wielding Excalibur or Demonbane, avoid "It looks angry"
if the demon can't be seen.  The pull request just suppressed the
message in that situation; I've added an alternate one.

Fixes #498
This commit is contained in:
PatR
2021-05-03 14:10:09 -07:00
parent 22b320f441
commit 04e68b7d32
2 changed files with 6 additions and 1 deletions

View File

@@ -225,7 +225,10 @@ demon_talk(register struct monst *mtmp)
if (uwep && (uwep->oartifact == ART_EXCALIBUR
|| uwep->oartifact == ART_DEMONBANE)) {
pline("%s looks very angry.", Amonnam(mtmp));
if (canspotmon(mtmp))
pline("%s looks very angry.", Amonnam(mtmp));
else
You_feel("tension building.");
mtmp->mpeaceful = mtmp->mtame = 0;
set_malign(mtmp);
newsym(mtmp->mx, mtmp->my);