mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- NPE prevention in SpellAbilityRestriction (prevents Jhoira of the Ghitu Avatar crashing)
This commit is contained in:
@@ -227,7 +227,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
|||||||
if (sa.isSpell()) {
|
if (sa.isSpell()) {
|
||||||
final CardPlayOption o = c.mayPlay(sa.getMayPlay());
|
final CardPlayOption o = c.mayPlay(sa.getMayPlay());
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return this.getZone() == null || cardZone.is(this.getZone());
|
return this.getZone() == null || (cardZone != null && cardZone.is(this.getZone()));
|
||||||
} else if (o.getPlayer() == activator) {
|
} else if (o.getPlayer() == activator) {
|
||||||
Map<String,String> params = sa.getMayPlay().getMapParams();
|
Map<String,String> params = sa.getMayPlay().getMapParams();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user