v2.1.0: fixed attempted moves to invalid places triggering self-trample
This commit is contained in:
@@ -877,7 +877,7 @@ public class Hero extends Char {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
//Hero moves in place if there is grass to trample
|
//Hero moves in place if there is grass to trample
|
||||||
} else if (canSelfTrample()){
|
} else if (pos == action.dst && canSelfTrample()){
|
||||||
canSelfTrample = false;
|
canSelfTrample = false;
|
||||||
Dungeon.level.pressCell(pos);
|
Dungeon.level.pressCell(pos);
|
||||||
spendAndNext( 1 / speed() );
|
spendAndNext( 1 / speed() );
|
||||||
|
|||||||
Reference in New Issue
Block a user