v2.1.0: fixed attempted moves to invalid places triggering self-trample

This commit is contained in:
Evan Debenham
2023-05-24 17:12:06 -04:00
parent 91ea209bba
commit 2a3e6f524f

View File

@@ -877,7 +877,7 @@ public class Hero extends Char {
return true;
//Hero moves in place if there is grass to trample
} else if (canSelfTrample()){
} else if (pos == action.dst && canSelfTrample()){
canSelfTrample = false;
Dungeon.level.pressCell(pos);
spendAndNext( 1 / speed() );