This commit is contained in:
Anuken
2020-09-16 16:04:11 -04:00
parent 5c98512e4f
commit 030542890e
8 changed files with 25 additions and 9 deletions

View File

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