think i finally solved movement going into enemy territory
This commit is contained in:
@@ -48,7 +48,9 @@ public partial class BasicMovement : PegAction
|
||||
public override bool MeetsCriteria(Peg PEG)
|
||||
{
|
||||
List<MapCell> bestPath = PEG.GetBestPath(true);
|
||||
return base.MeetsCriteria(PEG) && bestPath.Count > 0;
|
||||
return base.MeetsCriteria(PEG)
|
||||
&& bestPath.Count > 0
|
||||
&& PEG._map.GetCellDisposition(bestPath[0]._address) != -(int)PEG._disposition;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user