mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
Fix not being able to freely divide combat damage to attackers (#8961)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user