Always give a message when monster changes form via polytrap

... if the hero can see it.  This was an accessibility issue.
This commit is contained in:
Pasi Kallinen
2022-02-20 19:40:52 +02:00
parent fc19d1b453
commit 041a07468a
2 changed files with 2 additions and 6 deletions

View File

@@ -797,6 +797,7 @@ engraving with Fire Brand burns the text on the floor and does not
dull the artifact
make looting less tedious by getting rid of a y/n prompt making the command
go directly into the loot-in-out -menu
always give a message when monster changes form via polytrap if seen
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository

View File

@@ -2126,12 +2126,7 @@ trapeffect_poly_trap(
if (resists_magm(mtmp)) {
shieldeff(mtmp->mx, mtmp->my);
} else if (!resist(mtmp, WAND_CLASS, 0, NOTELL)) {
(void) newcham(mtmp, (struct permonst *) 0, FALSE,
/* if hero is moving, he probably just swapped
places with a pet or perhaps used a joust
attack to push mtmp into the trap; describe
mtmp's transformation into another shape */
(!g.context.mon_moving && in_sight));
(void) newcham(mtmp, (struct permonst *) 0, FALSE, in_sight);
if (in_sight)
seetrap(trap);
}