mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 00:38:44 +00:00
- Assign the result of the orderBlockers call.
This commit is contained in:
@@ -2048,9 +2048,9 @@ public class ComputerUtilCombat {
|
|||||||
|
|
||||||
// Order the combatants in preferred order in case legacy ordering is disabled
|
// Order the combatants in preferred order in case legacy ordering is disabled
|
||||||
final boolean legacyOrderCombatants = self.getGame().getRules().hasOrderCombatants();
|
final boolean legacyOrderCombatants = self.getGame().getRules().hasOrderCombatants();
|
||||||
final CardCollection orderedBlockers = new CardCollection(block);
|
CardCollection orderedBlockers = new CardCollection(block);
|
||||||
if (!legacyOrderCombatants) {
|
if (!legacyOrderCombatants) {
|
||||||
AiBlockController.orderBlockers(attacker, orderedBlockers); // assume sorted in case the legacy option is enabled
|
orderedBlockers = 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