Fix not being able to freely divide combat damage to attackers (#8961)

This commit is contained in:
tool4ever
2025-10-19 22:50:57 +02:00
committed by GitHub
parent 6f38479190
commit 7367e93140
2 changed files with 2 additions and 2 deletions

View File

@@ -2051,7 +2051,7 @@ 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 (!overrideOrder) {
if (combatant.isAttacking()) { if (combatant.isAttacking()) {
opposedCombatants = AiBlockController.orderBlockers(combatant, new CardCollection(opposedCombatants)); opposedCombatants = AiBlockController.orderBlockers(combatant, new CardCollection(opposedCombatants));
} else { } else {

View File

@@ -744,7 +744,7 @@ public class Combat {
assigningPlayer = attackingPlayer; assigningPlayer = attackingPlayer;
assignedDamage = true; assignedDamage = true;
Map<Card, Integer> map = assigningPlayer.getController().assignCombatDamage(blocker, attackers, null, damage, defender, divideCombatDamageAsChoose || assigningPlayer != blocker.getController()); Map<Card, Integer> map = assigningPlayer.getController().assignCombatDamage(blocker, attackers, null, damage, defender, divideCombatDamageAsChoose || assigningPlayer != blocker.getController() || !this.legacyOrderCombatants);
for (Entry<Card, Integer> dt : map.entrySet()) { for (Entry<Card, Integer> dt : map.entrySet()) {
// Butcher Orgg // Butcher Orgg
if (dt.getKey() == null && dt.getValue() > 0) { if (dt.getKey() == null && dt.getValue() > 0) {