v0.9.1: fixed preparation ignoring hero being rooted

This commit is contained in:
Evan Debenham 2020-11-03 15:22:51 -05:00
parent 98f5d1cffa
commit d47a223b9e

View File

@ -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;