From 7d8d1bc36a0829ac741c591285dde7b997947fb4 Mon Sep 17 00:00:00 2001 From: Eric Robinson <68359262+kphoenix137@users.noreply.github.com> Date: Sun, 11 May 2025 15:21:32 -0400 Subject: [PATCH] Fix Monster Line of Sight (#7988) --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 8c5078022..9b665180d 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1747,7 +1747,7 @@ bool AiPlanPath(Monster &monster) } bool clear = LineClear( - [&monster](Point position) { return IsTileAvailable(monster, position); }, + [&monster](Point position) { return (IsTileWalkable(position) && IsTileSafe(monster, position)); }, monster.position.tile, monster.enemyPosition); if (!clear || (monster.pathCount >= 5 && monster.pathCount < 8)) {