mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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)) {
|
|| !this.getZone().equals(ZoneType.Hand)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (cardZone.is(ZoneType.Stack)) {
|
if (cardZone != null && cardZone.is(ZoneType.Stack)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (c.mayPlay(activator) != null) {
|
if (c.mayPlay(activator) != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user