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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user