Skip to content

Commit

Permalink
Issue 2090: /nova chat command now works with non-enemy mechs too - l…
Browse files Browse the repository at this point in the history
…ess ambiguous formatting
  • Loading branch information
psikomonkie committed Dec 24, 2024
1 parent 10c45b5 commit 3fb19d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ private List<Entity> getAlliedNovaUnits() {
List<Entity> novaUnits = new LinkedList<>();
for (Entity ent : getClient().getEntitiesVector()) {
if (ent.hasNovaCEWS()
&& (ent.getOwnerId() == (getClient().getLocalPlayer().getId())
|| (getClient().getLocalPlayer()) != null
&& !getClient().getLocalPlayer().isEnemyOf(ent.getOwner()))){
&& ((ent.getOwnerId() == getClient().getLocalPlayer().getId())
|| (getClient().getLocalPlayer() != null
&& !getClient().getLocalPlayer().isEnemyOf(ent.getOwner())))){
novaUnits.add(ent);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ private List<Entity> getMyNovaUnits(int connID) {
private List<Entity> getAlliedNovaUnits(int connID) {
List<Entity> novaUnits = new LinkedList<>();
for (Entity ent : gameManager.getGame().getEntitiesVector()) {
if ((ent.hasNovaCEWS()
&& (ent.getOwnerId() == connID)
|| (gameManager.getGame().getPlayer(connID)) != null
&& !gameManager.getGame().getPlayer(connID).isEnemyOf(ent.getOwner()))){
if (ent.hasNovaCEWS()
&& ((ent.getOwnerId() == connID)
|| (gameManager.getGame().getPlayer(connID) != null
&& !gameManager.getGame().getPlayer(connID).isEnemyOf(ent.getOwner())))){
novaUnits.add(ent);
}
}
Expand Down

0 comments on commit 3fb19d9

Please sign in to comment.