【战斗】优化寻路逻辑
parent
a9ef94ee7a
commit
cffb388500
|
|
@ -161,7 +161,7 @@ namespace Gameplay
|
|||
}
|
||||
}
|
||||
|
||||
if (result.Count == 1 && !MapUtils.CanPass(moveLevel, toData))
|
||||
if (result.Count == 1 && !CanPass(to, moveUnit))
|
||||
{
|
||||
// 只有一格 且下一格子不可通行,则无法到达
|
||||
result.Clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue