mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
- Fixed Karn Liberated.
This commit is contained in:
parent
8072e79571
commit
f43a15ab22
1 changed files with 12 additions and 7 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue