【战斗】优化寻路逻辑

main
刘涛 2024-08-15 15:28:20 +08:00
parent a9ef94ee7a
commit cffb388500
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ namespace Gameplay
}
}
if (result.Count == 1 && !MapUtils.CanPass(moveLevel, toData))
if (result.Count == 1 && !CanPass(to, moveUnit))
{
// 只有一格 且下一格子不可通行,则无法到达
result.Clear();