Fixed some power/save/pathfinding bugs

This commit is contained in:
Anuken
2019-05-05 12:14:42 -04:00
parent 13969bdd29
commit 1e15d7a33e
7 changed files with 34 additions and 14 deletions
@@ -66,7 +66,7 @@ public class Pathfinder{
if(other == null) continue;
if(values[dx][dy] < value && (target == null || values[dx][dy] < tl) &&
!other.solid() &&
!other.solid() && other.floor().drownTime <= 0 &&
!(point.x != 0 && point.y != 0 && (world.solid(tile.x + point.x, tile.y) || world.solid(tile.x, tile.y + point.y)))){ //diagonal corner trap
target = other;
tl = values[dx][dy];