mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Update forge-ai/src/main/java/forge/ai/ComputerUtilCombat.java
Co-authored-by: Chris H <zenchristo@gmail.com>
This commit is contained in:
@@ -2048,7 +2048,11 @@ 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
|
||||||
if (!self.getGame().getRules().hasOrderCombatants()) {
|
if (!self.getGame().getRules().hasOrderCombatants()) {
|
||||||
// TODO: sometimes, orderAttackers needs to be called instead - differentiate this here somehow
|
if (combatant.isAttacking()) {
|
||||||
|
opposedCombatants = AiBlockController.orderBlockers(combatant, new CardCollection(opposedCombatants));
|
||||||
|
} else {
|
||||||
|
opposedCombatants = AiBlockController.orderAttackers(combatant, opposedCombatants);
|
||||||
|
}
|
||||||
block = AiBlockController.orderBlockers(attacker, new CardCollection(block)); // assume sorted in case the legacy option is enabled
|
block = AiBlockController.orderBlockers(attacker, new CardCollection(block)); // assume sorted in case the legacy option is enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user