U537 - autosearching while digging a trapped statue

Noticing a statue trap animate should stop your occupation.
That avoids the reported "You hit the  with all your might." message.
This commit is contained in:
cohrs
2003-07-13 05:17:49 +00:00
parent 5314fbe5b6
commit 567a501bdd
2 changed files with 4 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ travel command caches last position to make non-mouse less painful
update pit trapped time when polymorphing to or from a monster that passes_walls
show artifact hit message which affect the monster that swallowed the hero
revived pet corpse from bones file should not be loyal to current player
finding a statue trap you are about to dig should stop your occupation
Platform- and/or Interface-Specific Fixes

View File

@@ -470,9 +470,11 @@ int *fail_reason;
} else if (cause == ANIMATE_SHATTER)
pline("Instead of shattering, the statue suddenly %s!",
canspotmon(mon) ? "comes to life" : "disappears");
else /* cause == ANIMATE_NORMAL */
else { /* cause == ANIMATE_NORMAL */
You("find %s posing as a statue.",
canspotmon(mon) ? a_monnam(mon) : something);
stop_occupation();
}
/* avoid hiding under nothing */
if (x == u.ux && y == u.uy &&
Upolyd && hides_under(youmonst.data) && !OBJ_AT(x, y))