mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
Address review comments
This commit is contained in:
parent
a2fbfa87bc
commit
2d8853b977
2 changed files with 10 additions and 0 deletions
Mage.Sets/src/mage/cards
|
@ -23,7 +23,9 @@ import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
import mage.target.Target;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -81,6 +83,13 @@ class SphinxOfUthuunEffect extends OneShotEffect {
|
||||||
Set<UUID> opponents = game.getOpponents(source.getControllerId());
|
Set<UUID> opponents = game.getOpponents(source.getControllerId());
|
||||||
if (!opponents.isEmpty()) {
|
if (!opponents.isEmpty()) {
|
||||||
Player opponent = game.getPlayer(opponents.iterator().next());
|
Player opponent = game.getPlayer(opponents.iterator().next());
|
||||||
|
if (opponents.size() > 1) {
|
||||||
|
Target targetOpponent = new TargetOpponent(true);
|
||||||
|
if (controller.chooseTarget(Outcome.Neutral, targetOpponent, source, game)) {
|
||||||
|
opponent = game.getPlayer(targetOpponent.getFirstTarget());
|
||||||
|
game.informPlayers(controller.getLogName() + " chose " + opponent.getLogName() + " to separate the revealed cards");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY, new FilterCard("cards to put in the first pile"));
|
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY, new FilterCard("cards to put in the first pile"));
|
||||||
target.setRequired(false);
|
target.setRequired(false);
|
||||||
|
|
|
@ -14,6 +14,7 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
import mage.target.Target;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue