mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- NPE prevention in SpellAbility#canTarget.
This commit is contained in:
@@ -976,7 +976,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
|
||||
if (entity instanceof Card) {
|
||||
final Card c = (Card) entity;
|
||||
if (!tr.getZone().contains(c.getZone().getZoneType())) {
|
||||
if (c.getZone() != null && !tr.getZone().contains(c.getZone().getZoneType())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user