This commit is contained in:
Anuken
2021-02-24 09:52:53 -05:00
parent befda9baaa
commit afbde49fa2
5 changed files with 9 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ public class FlyingAI extends AIController{
public void updateMovement(){
if(target != null && unit.hasWeapons() && command() == UnitCommand.attack){
if(!unit.type.circleTarget){
moveTo(target, unit.range() * 0.8f);
moveTo(target, unit.type.range * 0.8f);
unit.lookAt(target);
}else{
attack(120f);