mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[CLB] fix #9556
This commit is contained in:
parent
cb5baa37c2
commit
47eea60feb
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,7 @@ import mage.filter.StaticFilters;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
import mage.target.common.TargetCardInExile;
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
|
@ -68,7 +69,7 @@ class SplitTheSpoilsEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
player.moveCards(cards, Zone.EXILED, source, game);
|
player.moveCards(cards, Zone.EXILED, source, game);
|
||||||
TargetCard target = new TargetCardInYourGraveyard(0, 5);
|
TargetCard target = new TargetCardInExile(0, 5, StaticFilters.FILTER_CARD, null);
|
||||||
target.withChooseHint("To put in pile 1").setNotTarget(true);
|
target.withChooseHint("To put in pile 1").setNotTarget(true);
|
||||||
player.choose(outcome, cards, target, game);
|
player.choose(outcome, cards, target, game);
|
||||||
List<Card> pile1 = new ArrayList<>();
|
List<Card> pile1 = new ArrayList<>();
|
||||||
|
@ -82,6 +83,7 @@ class SplitTheSpoilsEffect extends OneShotEffect {
|
||||||
pile2.addAll(cards.getCards(game));
|
pile2.addAll(cards.getCards(game));
|
||||||
TargetOpponent targetOpponent = new TargetOpponent();
|
TargetOpponent targetOpponent = new TargetOpponent();
|
||||||
targetOpponent.setNotTarget(true);
|
targetOpponent.setNotTarget(true);
|
||||||
|
player.choose(outcome, targetOpponent, source, game);
|
||||||
if (game.getPlayer(targetOpponent.getFirstTarget()).choosePile(
|
if (game.getPlayer(targetOpponent.getFirstTarget()).choosePile(
|
||||||
outcome, "Choose a pile to go to hand (the other goes to graveyard)", pile1, pile2, game
|
outcome, "Choose a pile to go to hand (the other goes to graveyard)", pile1, pile2, game
|
||||||
)) {
|
)) {
|
||||||
|
|
Loading…
Reference in a new issue