- Fixed Karn Liberated.

This commit is contained in:
Jeff 2017-04-06 11:41:51 -05:00
parent 8072e79571
commit f43a15ab22

View file

@ -57,7 +57,6 @@ import mage.game.permanent.PermanentImpl;
import mage.players.Player; import mage.players.Player;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import mage.util.CardUtil;
/** /**
* *
@ -221,14 +220,20 @@ 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. // 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 cards = new CardsImpl(); // needed because putOntoTheBattlefield removes from exile
cards.addAll(exile); cards.addAll(exile);
if (!cards.isEmpty()) {
controller.moveCards(cards, Zone.BATTLEFIELD, source, game); controller.moveCards(cards, Zone.BATTLEFIELD, source, game);
for (Card card : cards.getCards(game)) { for (Card card : cards.getCards(game)) {
if (card != null) {
Permanent permanent = game.getPermanent(card.getId()); Permanent permanent = game.getPermanent(card.getId());
if (permanent != null) {
((PermanentImpl) permanent).removeSummoningSickness(); ((PermanentImpl) permanent).removeSummoningSickness();
} }
return true;
} }
} }
}
}
return true;
}
return false; return false;
} }