Skip to content

Commit

Permalink
Small cleanup.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c14de731679c3d6284bed3425a5175a73b07a339
  • Loading branch information
cpojer committed Oct 28, 2024
1 parent b4ff20e commit 44d6f0c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions apollo/HiddenAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,9 @@ function applyHiddenSourceAttackBuildingAction(
to,
existingBuilding.setHealth(building.health),
),
...(existingUnit
? {
units: map.units.set(
to,
existingUnit.copy(unitC).maybeUpdateAIBehavior(),
),
}
: null),
units: existingUnit
? map.units.set(to, existingUnit.copy(unitC).maybeUpdateAIBehavior())
: map.units,
});
}

Expand Down

0 comments on commit 44d6f0c

Please sign in to comment.