v1.4.0: fixed new movement logic incorrectly interacting with hourglass

This commit is contained in:
Evan Debenham
2022-09-26 17:30:01 -04:00
parent ddbbff41e5
commit ba5bd256bc

View File

@@ -771,9 +771,8 @@ public class Hero extends Char {
if (getCloser( action.dst )) {
return true;
//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)){
//Hero moves in place if there is high grass to trample
} else if (!rooted && !flying && Dungeon.level.map[pos] == Terrain.HIGH_GRASS){
Dungeon.level.pressCell(pos);
spendAndNext( 1 / speed() );
return false;