mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
- Reuse AiBlockController.orderBlockers
This commit is contained in:
@@ -2050,7 +2050,7 @@ public class ComputerUtilCombat {
|
||||
final boolean legacyOrderCombatants = self.getGame().getRules().hasOrderCombatants();
|
||||
final CardCollection orderedBlockers = new CardCollection(block);
|
||||
if (!legacyOrderCombatants) {
|
||||
ComputerUtilCard.sortByEvaluateCreature(orderedBlockers); // assume sorted in case the legacy option is enabled
|
||||
AiBlockController.orderBlockers(attacker, orderedBlockers); // assume sorted in case the legacy option is enabled
|
||||
}
|
||||
|
||||
if (orderedBlockers.size() == 1) {
|
||||
|
||||
Reference in New Issue
Block a user