Proper interplanetary launch

This commit is contained in:
Anuken
2022-01-23 14:37:08 -05:00
parent 3574e40a08
commit 4497f7ab3a
11 changed files with 66 additions and 9 deletions

View File

@@ -76,6 +76,14 @@ public class MobileInput extends InputHandler implements GestureListener{
/** Control building last tapped. */
public @Nullable Building buildingTapped;
{
Events.on(UnitDestroyEvent.class, e -> {
if(e.unit != null && e.unit.isPlayer() && e.unit.getPlayer().isLocal() && e.unit.type.weapons.contains(w -> w.bullet.killShooter)){
manualShooting = false;
}
});
}
//region utility methods
/** Check and assign targets for a specific position. */