This commit is contained in:
BetaSteward 2012-03-29 08:32:52 -04:00
parent 7aeee8ef7e
commit 97c6f33154
5 changed files with 13 additions and 9 deletions

View file

@ -83,7 +83,7 @@ class FlingEffect extends OneShotEffect<FlingEffect> {
public boolean apply(Game game, Ability source) {
int amount = 0;
for (Cost cost: source.getCosts()) {
if (cost instanceof SacrificeTargetCost) {
if (cost instanceof SacrificeTargetCost && ((SacrificeTargetCost)cost).getPermanents().size() > 0) {
amount = ((SacrificeTargetCost)cost).getPermanents().get(0).getPower().getValue();
break;
}

View file

@ -194,11 +194,14 @@ class KarnLiberatedDelayedEffect extends OneShotEffect<KarnLiberatedDelayedEffec
@Override
public boolean apply(Game game, Ability source) {
ExileZone exile = game.getExile().getExileZone(exileId);
for (Card card: exile.getCards(game)) {
card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), source.getControllerId());
if (exile != null) {
for (Card card: exile.getCards(game)) {
card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), source.getControllerId());
}
exile.clear();
return true;
}
exile.clear();
return true;
return false;
}
@Override