This commit is contained in:
Anuken
2019-09-25 13:51:23 -04:00
parent 04cfec3213
commit 5ac7fa5eca
3 changed files with 20 additions and 22 deletions

View File

@@ -38,11 +38,8 @@ public abstract class FlyingUnit extends BaseUnit{
if(target == null) targetClosestEnemyFlag(BlockFlag.turret);
}
if(target == null){
if(getClosestSpawner() == null && getSpawner() != null){
target = getSpawner();
}
if(target == getSpawner() && getSpawner() != null){
circle(80f + Mathf.randomSeed(id) * 120);
}else if(target != null){
attack(type.attackLength);