diff --git a/Mage.Sets/src/mage/cards/k/KarnLiberated.java b/Mage.Sets/src/mage/cards/k/KarnLiberated.java index 5e08e65dfb..6d7c6867f3 100644 --- a/Mage.Sets/src/mage/cards/k/KarnLiberated.java +++ b/Mage.Sets/src/mage/cards/k/KarnLiberated.java @@ -57,7 +57,6 @@ import mage.game.permanent.PermanentImpl; import mage.players.Player; import mage.target.TargetPermanent; import mage.target.TargetPlayer; -import mage.util.CardUtil; /** * @@ -68,7 +67,7 @@ public class KarnLiberated extends CardImpl { private UUID exileId = UUID.randomUUID(); public KarnLiberated(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.PLANESWALKER},"{7}"); + super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{7}"); this.subtype.add("Karn"); this.addAbility(new PlanswalkerEntersWithLoyalityCountersAbility(6)); @@ -221,13 +220,19 @@ class KarnLiberatedDelayedEffect extends OneShotEffect { // since the beginning of the first turn. They can attack and their activated abilities with {T} in the cost can be activated. Cards cards = new CardsImpl(); // needed because putOntoTheBattlefield removes from exile cards.addAll(exile); - controller.moveCards(cards, Zone.BATTLEFIELD, source, game); - for (Card card : cards.getCards(game)) { - Permanent permanent = game.getPermanent(card.getId()); - ((PermanentImpl) permanent).removeSummoningSickness(); + if (!cards.isEmpty()) { + controller.moveCards(cards, Zone.BATTLEFIELD, source, game); + for (Card card : cards.getCards(game)) { + if (card != null) { + Permanent permanent = game.getPermanent(card.getId()); + if (permanent != null) { + ((PermanentImpl) permanent).removeSummoningSickness(); + } + } + } } - return true; } + return true; } return false; }