]> granicus.if.org Git - nethack/commitdiff
Always give a message when monster changes form via polytrap
authorPasi Kallinen <paxed@alt.org>
Sun, 20 Feb 2022 17:40:52 +0000 (19:40 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 20 Feb 2022 17:40:55 +0000 (19:40 +0200)
... if the hero can see it.  This was an accessibility issue.

doc/fixes3-7-0.txt
src/trap.c

index 564b86ec9d5913330d9303c06cb5f231ebf3aaae..bd3b26c629981cfff188f7a5f1174fb253e04bff 100644 (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
index 5e53581a344f979756a3d8b678d3e7b6a54b07d8..ba8b09480ca6348877f8c73d557352fe0546ac92 100644 (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);
         }