mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed possible NPE in getBlockers.
This commit is contained in:
@@ -441,12 +441,12 @@ public class Combat {
|
||||
}
|
||||
|
||||
public final List<Card> getBlockers(final Card card, boolean ordered) {
|
||||
// If requesting the ordered blocking lsit pass true, directly.
|
||||
// If requesting the ordered blocking list pass true, directly.
|
||||
List<Card> list = null;
|
||||
if (ordered) {
|
||||
list = this.attackerDamageAssignmentOrder.containsKey(card) ? this.attackerDamageAssignmentOrder.get(card) : null;
|
||||
} else {
|
||||
list = this.getBandByAttacker(card).getBlockers();
|
||||
list = this.getBandByAttacker(card) != null ? this.getBandByAttacker(card).getBlockers() : null;
|
||||
}
|
||||
|
||||
if (list == null) {
|
||||
|
||||
Reference in New Issue
Block a user