From 719f88b3c83e4392a42f37b0b7c290b54b3b0b53 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 22 Jan 2017 22:27:39 +0100 Subject: [PATCH] * Fixed possible IndexOutOfBoundsException during combat. --- Mage/src/main/java/mage/game/combat/CombatGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/game/combat/CombatGroup.java b/Mage/src/main/java/mage/game/combat/CombatGroup.java index 713929dcfe..b18d6f7610 100644 --- a/Mage/src/main/java/mage/game/combat/CombatGroup.java +++ b/Mage/src/main/java/mage/game/combat/CombatGroup.java @@ -299,7 +299,7 @@ public class CombatGroup implements Serializable, Copyable { } if (damage > 0 && hasTrample(attacker)) { defenderDamage(attacker, damage, game); - } else { + } else if (!blockerOrder.isEmpty()) { // Assign the damge left to first blocker assigned.put(blockerOrder.get(0), assigned.get(blockerOrder.get(0)) + damage); }