From d47a223b9eab88ba59f04d5e4f5e8a193d748302 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 3 Nov 2020 15:22:51 -0500 Subject: [PATCH] v0.9.1: fixed preparation ignoring hero being rooted --- .../shatteredpixeldungeon/actors/buffs/Preparation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java index 146d9224a..06f7b86a0 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Preparation.java @@ -259,7 +259,7 @@ public class Preparation extends Buff implements ActionIndicator.Action { PathFinder.Path path = PathFinder.find(Dungeon.hero.pos, cell, blinkable); int attackPos = path == null ? -1 : path.get(path.size()-2); - if (attackPos == -1 || + if (attackPos == -1 || Dungeon.hero.rooted || Dungeon.level.distance(attackPos, Dungeon.hero.pos) > lvl.blinkDistance){ GLog.w(Messages.get(Preparation.class, "out_of_reach")); return;