mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Disciple of Phenax - It shows no longer an empty window, if target player has no cards in hand.
This commit is contained in:
parent
672567cd72
commit
957d420e8d
1 changed files with 16 additions and 13 deletions
|
@ -122,22 +122,25 @@ class DiscipleOfPhenaxEffect extends OneShotEffect<DiscipleOfPhenaxEffect> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
targetPlayer.revealCards("Disciple of Phenax", revealedCards, game);
|
||||
|
||||
Player you = game.getPlayer(source.getControllerId());
|
||||
|
||||
if (you != null) {
|
||||
TargetCard yourChoice = new TargetCard(Zone.PICK, new FilterCard());
|
||||
yourChoice.setRequired(true);
|
||||
yourChoice.setNotTarget(true);
|
||||
if (you.choose(Outcome.Benefit, revealedCards, yourChoice, game)) {
|
||||
Card card = targetPlayer.getHand().get(yourChoice.getFirstTarget(), game);
|
||||
if (card != null) {
|
||||
return targetPlayer.discard(card, source, game);
|
||||
if (!revealedCards.isEmpty()) {
|
||||
targetPlayer.revealCards("Disciple of Phenax", revealedCards, game);
|
||||
Player you = game.getPlayer(source.getControllerId());
|
||||
if (you != null) {
|
||||
TargetCard yourChoice = new TargetCard(Zone.PICK, new FilterCard());
|
||||
yourChoice.setRequired(true);
|
||||
yourChoice.setNotTarget(true);
|
||||
if (you.choose(Outcome.Benefit, revealedCards, yourChoice, game)) {
|
||||
Card card = targetPlayer.getHand().get(yourChoice.getFirstTarget(), game);
|
||||
if (card != null) {
|
||||
return targetPlayer.discard(card, source, game);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue