v1.4.0: fixed bugs with new 'wait to trample' logic

This commit is contained in:
Evan Debenham
2022-09-22 13:39:46 -04:00
parent 78a7de56fc
commit 08fb99cabd

View File

@@ -771,9 +771,9 @@ public class Hero extends Char {
if (getCloser( action.dst )) {
return true;
//Hero moves in place if there is a trap to trigger or grass to trample
} else if (!rooted &&
(Dungeon.level.traps.get(pos) != null || Dungeon.level.map[pos] == Terrain.HIGH_GRASS)){
//Hero moves in place if there is an active trap to trigger or grass to trample
} else if (!rooted && !flying &&
(Dungeon.level.map[pos] == Terrain.TRAP || Dungeon.level.map[pos] == Terrain.HIGH_GRASS)){
Dungeon.level.pressCell(pos);
spendAndNext( 1 / speed() );
return false;