v2.4.0: fixed tele not properly checking openSpace on boss floors

This commit is contained in:
Evan Debenham
2024-04-26 11:32:41 -04:00
parent c173c603f1
commit f542c7438e

View File

@@ -225,7 +225,7 @@ public class ScrollOfTeleportation extends Scroll {
boolean[] passable = Dungeon.level.passable;
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);