- NPE protection in checkZoneRestrictions.

This commit is contained in:
Sloth
2015-09-15 07:35:28 +00:00
parent 59536bbe62
commit b922a9e750

View File

@@ -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) {