* Relic of Progenitus - Added game log info about moved cards.

This commit is contained in:
LevelX2 2014-09-01 15:03:34 +02:00
parent b98c16f061
commit c716128f72

View file

@ -28,10 +28,6 @@
package mage.sets.shardsofalara; package mage.sets.shardsofalara;
import java.util.UUID; import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost; import mage.abilities.costs.common.SacrificeSourceCost;
@ -41,6 +37,10 @@ import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect; import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.cards.Card; import mage.cards.Card;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.FilterCard; import mage.filter.FilterCard;
import mage.filter.predicate.other.OwnerIdPredicate; import mage.filter.predicate.other.OwnerIdPredicate;
import mage.game.Game; import mage.game.Game;
@ -106,8 +106,7 @@ class RelicOfProgenitusEffect extends OneShotEffect {
if (targetPlayer.chooseTarget(Outcome.Exile, target, source, game)) { if (targetPlayer.chooseTarget(Outcome.Exile, target, source, game)) {
Card card = game.getCard(target.getFirstTarget()); Card card = game.getCard(target.getFirstTarget());
if (card != null) { if (card != null) {
targetPlayer.getGraveyard().remove(card); targetPlayer.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
card.moveToExile(null, null, source.getSourceId(), game);
} }
return true; return true;
} }
@ -145,7 +144,7 @@ class RelicOfProgenitusEffect2 extends OneShotEffect {
for (UUID cid : player.getGraveyard().copy()) { for (UUID cid : player.getGraveyard().copy()) {
Card card = game.getCard(cid); Card card = game.getCard(cid);
if (card != null) { if (card != null) {
card.moveToExile(null, null, source.getSourceId(), game); controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.GRAVEYARD);
} }
} }
} }