mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed possible NPE in assignAttackersDamage.
This commit is contained in:
@@ -641,7 +641,7 @@ public class Combat {
|
|||||||
blockers = this.attackerDamageAssignmentOrder.get(attacker);
|
blockers = this.attackerDamageAssignmentOrder.get(attacker);
|
||||||
assignedDamage = true;
|
assignedDamage = true;
|
||||||
// If the Attacker is unblocked, or it's a trampler and has 0 blockers, deal damage to defender
|
// If the Attacker is unblocked, or it's a trampler and has 0 blockers, deal damage to defender
|
||||||
if (blockers.isEmpty()) {
|
if (blockers == null || blockers.isEmpty()) {
|
||||||
if (trampler || !band.getBlocked()) {
|
if (trampler || !band.getBlocked()) {
|
||||||
this.addDefendingDamage(damageDealt, attacker);
|
this.addDefendingDamage(damageDealt, attacker);
|
||||||
} // No damage happens if blocked but no blockers left
|
} // No damage happens if blocked but no blockers left
|
||||||
|
|||||||
Reference in New Issue
Block a user