mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +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 boolean legacyOrderCombatants = self.getGame().getRules().hasOrderCombatants();
|
||||||
final CardCollection orderedBlockers = new CardCollection(block);
|
final CardCollection orderedBlockers = new CardCollection(block);
|
||||||
if (!legacyOrderCombatants) {
|
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) {
|
if (orderedBlockers.size() == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user