mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Relic of Progenitus - Added game log info about moved cards.
This commit is contained in:
parent
b98c16f061
commit
c716128f72
1 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue