v2.4.0: fixed tele not properly checking openSpace on boss floors
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ public class ScrollOfTeleportation extends Scroll {
|
|||||||
boolean[] passable = Dungeon.level.passable;
|
boolean[] passable = Dungeon.level.passable;
|
||||||
|
|
||||||
if (Char.hasProp(ch, Char.Property.LARGE)){
|
if (Char.hasProp(ch, Char.Property.LARGE)){
|
||||||
passable = BArray.or(passable, Dungeon.level.openSpace, null);
|
passable = BArray.and(passable, Dungeon.level.openSpace, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
PathFinder.buildDistanceMap(ch.pos, passable);
|
PathFinder.buildDistanceMap(ch.pos, passable);
|
||||||
|
|||||||
Reference in New Issue
Block a user