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

@@ -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))