mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- NPE prevention for RememberMap in Card.
This commit is contained in:
@@ -5408,8 +5408,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
for (SpellAbility sa : source.getSpellAbilities()) {
|
||||
if (sa.getActivatingPlayer() == null) continue;
|
||||
for (Player p : AbilityUtils.getDefinedPlayers(source, property.split("RememberMap_")[1], sa)) {
|
||||
if (source.getRememberMap().get(p).contains(this)) {
|
||||
return true;
|
||||
if (source.getRememberMap() != null && source.getRememberMap().get(p) != null) {
|
||||
if (source.getRememberMap().get(p).contains(this)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user