This commit is contained in:
Anuken
2022-05-09 09:49:15 -04:00
parent a8a8cc950e
commit 900e3ec334
3 changed files with 7 additions and 3 deletions

View File

@@ -234,7 +234,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
ai.commandPosition(posTarget);
}
}
}
if(unitIds.length > 0 && player == Vars.player){
if(teamTarget != null){
Fx.attackCommand.at(teamTarget);
}else{

View File

@@ -110,10 +110,10 @@ public class RepairBeamWeapon extends Weapon{
wy = unit.y + Angles.trnsy(weaponRotation, x, y);
HealBeamMount heal = (HealBeamMount)mount;
heal.target = null;
boolean canShoot = mount.shoot;
if(!autoTarget){
heal.target = null;
if(canShoot){
heal.lastEnd.set(heal.aimX, heal.aimY);

View File

@@ -76,9 +76,11 @@ public class AutoDoor extends Wall{
public void setOpen(boolean open){
this.open = open;
(!open ? closefx : openfx).at(this, size);
doorSound.at(this);
pathfinder.updateTile(tile);
if(wasVisible){
(!open ? closefx : openfx).at(this, size);
doorSound.at(this);
}
}
@Override