From 49eeb4104ed81df96d2351a2f84f70fd13651e2d Mon Sep 17 00:00:00 2001 From: asvitkine Date: Fri, 14 Jul 2023 00:27:14 -0400 Subject: [PATCH] Add comment to MustFightBattle.removeNonCombatants(). --- .../games/strategy/triplea/delegate/battle/MustFightBattle.java | 1 + 1 file changed, 1 insertion(+) diff --git a/game-app/game-core/src/main/java/games/strategy/triplea/delegate/battle/MustFightBattle.java b/game-app/game-core/src/main/java/games/strategy/triplea/delegate/battle/MustFightBattle.java index a02f7dd5396..a040865b496 100644 --- a/game-app/game-core/src/main/java/games/strategy/triplea/delegate/battle/MustFightBattle.java +++ b/game-app/game-core/src/main/java/games/strategy/triplea/delegate/battle/MustFightBattle.java @@ -1272,6 +1272,7 @@ private List removeNonCombatants( final boolean attacking, final boolean removeForNextRound) { int battleRound = (removeForNextRound ? round + 1 : round); + // Note: Also done in FiringGroupSplitterGeneral when determining step names. They must match. return CollectionUtils.getMatches( units, Matches.unitCanParticipateInCombat(