This commit is contained in:
Anuken
2020-09-24 14:26:24 -04:00
parent a914bd77f6
commit 1682e3b996
5 changed files with 53 additions and 6 deletions
@@ -51,7 +51,6 @@ public class GroundAI extends AIController{
if(!Units.invalidateTarget(target, unit, unit.range()) && unit.type().rotateShooting){
if(unit.type().hasWeapons()){
//TODO certain units should not look at the target, e.g. ships
unit.lookAt(Predict.intercept(unit, target, unit.type().weapons.first().bullet.speed));
}
}else if(unit.moving()){