This commit is contained in:
Anuken
2020-09-22 21:48:42 -04:00
parent 3592b36f85
commit 721e79eb90

View File

@@ -14,7 +14,9 @@ public class RepairAI extends AIController{
if(target != null){
if(!target.within(unit, unit.type().range * 0.8f)){
moveTo(target, unit.type().range * 0.8f);
}else{
}
if(target.within(unit, unit.type().range)){
unit.aim(target);
shoot = true;
}