mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Prevent NPE when the spell is countered.
This commit is contained in:
@@ -69,7 +69,7 @@ public class ControlSpellEffect extends SpellAbilityEffect {
|
|||||||
GameObject obj = Iterables.getFirst(getDefinedOrTargeted(sa, "DefinedExchange"), null);
|
GameObject obj = Iterables.getFirst(getDefinedOrTargeted(sa, "DefinedExchange"), null);
|
||||||
if (obj instanceof Card) {
|
if (obj instanceof Card) {
|
||||||
Card c = (Card)obj;
|
Card c = (Card)obj;
|
||||||
if (!(c.isInZone(ZoneType.Battlefield))) {
|
if (!(c.isInZone(ZoneType.Battlefield)) || si == null) {
|
||||||
// Exchanging object isn't available, continue
|
// Exchanging object isn't available, continue
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user