mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- NPE protection in checkZoneRestrictions.
This commit is contained in:
@@ -210,7 +210,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
||||
|| !this.getZone().equals(ZoneType.Hand)) {
|
||||
return false;
|
||||
}
|
||||
if (cardZone.is(ZoneType.Stack)) {
|
||||
if (cardZone != null && cardZone.is(ZoneType.Stack)) {
|
||||
return false;
|
||||
}
|
||||
if (c.mayPlay(activator) != null) {
|
||||
|
||||
Reference in New Issue
Block a user