This commit is contained in:
Anuken
2019-09-28 10:34:50 -04:00
parent 4e55cbbfe8
commit a74722aea5
3 changed files with 8 additions and 3 deletions
@@ -36,6 +36,10 @@ public abstract class FlyingUnit extends BaseUnit{
if(target == null) targetClosestEnemyFlag(BlockFlag.producer);
if(target == null) targetClosestEnemyFlag(BlockFlag.turret);
if(target == null && isCommanded() && getCommand() != UnitCommand.attack){
onCommand(getCommand());
}
}
if(getClosestSpawner() == null && getSpawner() != null && target == null){