mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Fix NPE
This commit is contained in:
@@ -193,7 +193,6 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
private boolean activateLoyaltyAbilityThisTurn = false;
|
||||
private boolean tappedLandForManaThisTurn = false;
|
||||
private int attackersDeclaredThisTurn = 0;
|
||||
private PlayerCollection attackedOpponentsThisTurn = new PlayerCollection();
|
||||
|
||||
private final Map<ZoneType, PlayerZone> zones = Maps.newEnumMap(ZoneType.class);
|
||||
private final Map<Long, Integer> adjustLandPlays = Maps.newHashMap();
|
||||
|
||||
@@ -410,6 +410,7 @@ public class ReplacementHandler {
|
||||
final GameEntity target = et.getKey();
|
||||
int playerIndex = (target instanceof Player ? players.indexOf(((Player) target)) :
|
||||
players.indexOf(((Card) target).getController()));
|
||||
if (playerIndex == -1) continue;
|
||||
Map<ReplacementEffect, List<Map<AbilityKey, Object>>> replaceCandidateMap = replaceDamageList.get(playerIndex);
|
||||
for (Map.Entry<Card, Integer> e : et.getValue().entrySet()) {
|
||||
Card source = e.getKey();
|
||||
|
||||
Reference in New Issue
Block a user