mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
* Fixed possible IndexOutOfBoundsException during combat.
This commit is contained in:
parent
dad1a10eec
commit
719f88b3c8
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
|
||||||
}
|
}
|
||||||
if (damage > 0 && hasTrample(attacker)) {
|
if (damage > 0 && hasTrample(attacker)) {
|
||||||
defenderDamage(attacker, damage, game);
|
defenderDamage(attacker, damage, game);
|
||||||
} else {
|
} else if (!blockerOrder.isEmpty()) {
|
||||||
// Assign the damge left to first blocker
|
// Assign the damge left to first blocker
|
||||||
assigned.put(blockerOrder.get(0), assigned.get(blockerOrder.get(0)) + damage);
|
assigned.put(blockerOrder.get(0), assigned.get(blockerOrder.get(0)) + damage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue