This commit is contained in:
Anuken
2021-08-25 08:49:41 -04:00
parent a15f8131fa
commit da7873cbd8
2 changed files with 2 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ public class BaseAI{
calculating = false;
}
}else{
var field = pathfinder.getField(state.rules.waveTeam, Pathfinder.costGround, Pathfinder.fieldCore);
var field = pathfinder.getField(data.team, Pathfinder.costGround, Pathfinder.fieldCore);
if(field.weights != null){
int[][] weights = field.weights;
@@ -120,7 +120,7 @@ public class BaseAI{
}
//found the end.
if(calcTile.build instanceof CoreBuild b && b.team == state.rules.defaultTeam){
if(calcTile.build instanceof CoreBuild b && b.team != data.team){
//clean up calculations and flush results
calculating = false;
calcCount = 0;