Skip to content

Commit

Permalink
Don't auto-resolve single land battle if it depends on another battle. (
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Apr 28, 2024
1 parent b4efe35 commit 640834e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -1281,7 +1281,10 @@ private static List<Unit> getPossibleDefendingUnits(
public void fightBattleIfOnlyOne(final IDelegateBridge bridge) {
final Collection<IBattle> battles = getPendingBattles(BattleType.NORMAL);
if (battles.size() == 1) {
CollectionUtils.getAny(battles).fight(bridge);
final var battle = CollectionUtils.getAny(battles);
if (getDependentOn(battle).isEmpty()) {
battle.fight(bridge);
}
}
}

Expand Down

0 comments on commit 640834e

Please sign in to comment.