mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 01:38:13 +00:00
- Only call the sort command in case legacy ordering is disabled, assume sorted elsewhere otherwise.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user