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:
@@ -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
|
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
|
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
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+3
-1
@@ -470,9 +470,11 @@ int *fail_reason;
|
|||||||
} else if (cause == ANIMATE_SHATTER)
|
} else if (cause == ANIMATE_SHATTER)
|
||||||
pline("Instead of shattering, the statue suddenly %s!",
|
pline("Instead of shattering, the statue suddenly %s!",
|
||||||
canspotmon(mon) ? "comes to life" : "disappears");
|
canspotmon(mon) ? "comes to life" : "disappears");
|
||||||
else /* cause == ANIMATE_NORMAL */
|
else { /* cause == ANIMATE_NORMAL */
|
||||||
You("find %s posing as a statue.",
|
You("find %s posing as a statue.",
|
||||||
canspotmon(mon) ? a_monnam(mon) : something);
|
canspotmon(mon) ? a_monnam(mon) : something);
|
||||||
|
stop_occupation();
|
||||||
|
}
|
||||||
/* avoid hiding under nothing */
|
/* avoid hiding under nothing */
|
||||||
if (x == u.ux && y == u.uy &&
|
if (x == u.ux && y == u.uy &&
|
||||||
Upolyd && hides_under(youmonst.data) && !OBJ_AT(x, y))
|
Upolyd && hides_under(youmonst.data) && !OBJ_AT(x, y))
|
||||||
|
|||||||
Reference in New Issue
Block a user