Auto-target configuration

This commit is contained in:
Anuken
2018-09-29 20:49:19 -04:00
parent e7533232c0
commit b43c542213
6 changed files with 30 additions and 24 deletions
@@ -664,7 +664,9 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
if(target == null){
isShooting = false;
target = Units.getClosestTarget(team, x, y, getWeapon().getAmmo().getRange());
if(Settings.getBool("autotarget")){
target = Units.getClosestTarget(team, x, y, getWeapon().getAmmo().getRange());
}
}else if(target.isValid()){
//rotate toward and shoot the target
if(mech.turnCursor){