From c0219c95e039027f903643884814fd2a40a40f3b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 19 Feb 2022 20:46:39 -0500 Subject: [PATCH] v1.2.0: fixed movement keys triggering on targeting cell selectors --- .../shatteredpixeldungeon/scenes/CellSelector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java index 442ce7822..1411126a7 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java @@ -373,7 +373,9 @@ public class CellSelector extends ScrollArea { if (cell != Dungeon.hero.pos && cell != lastCellMoved){ lastCellMoved = cell; - select(cell, PointerEvent.LEFT); + if (Dungeon.hero.handle( cell )) { + Dungeon.hero.next(); + } return true; } else {