- Only call the sort command in case legacy ordering is disabled, assume sorted elsewhere otherwise.

This commit is contained in:
Agetian
2025-10-08 10:38:19 +03:00
committed by Chris H
parent af947c9af5
commit 6152933766

View File

@@ -2046,9 +2046,12 @@ public class ComputerUtilCombat {
// TODO sort remaining tramplers for DamageDone triggers
}
// Order the combatants in preferred order
// Order the combatants in preferred order in case legacy ordering is disabled
final boolean legacyOrderCombatants = self.getGame().getRules().hasOrderCombatants();
final CardCollection orderedBlockers = new CardCollection(block);
ComputerUtilCard.sortByEvaluateCreature(orderedBlockers);
if (!legacyOrderCombatants) {
ComputerUtilCard.sortByEvaluateCreature(orderedBlockers); // assume sorted in case the legacy option is enabled
}
if (orderedBlockers.size() == 1) {
final Card blocker = orderedBlockers.getFirst();