Bugfixes
This commit is contained in:
@@ -34,6 +34,7 @@ public class AIController implements UnitController{
|
||||
@Override
|
||||
public void updateUnit(){
|
||||
if(disabled()){
|
||||
stopShooting();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -49,6 +50,13 @@ public class AIController implements UnitController{
|
||||
updateMovement();
|
||||
}
|
||||
|
||||
public void stopShooting(){
|
||||
for(var mount : unit.mounts){
|
||||
//ignore mount controllable stats too, they should not shoot either
|
||||
mount.shoot = false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean disabled(){
|
||||
return !unit.team.isAI() && !unit.type.defaultAI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user