mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Genesis Ultimatum not allowing cards to be selected
This commit is contained in:
parent
249c51a8bb
commit
aa96ed225f
1 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ import mage.filter.common.FilterPermanentCard;
|
|||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetCard;
|
||||
import mage.target.common.TargetCardInHand;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
@ -45,7 +45,7 @@ public final class GenesisUltimatum extends CardImpl {
|
|||
|
||||
class GenesisUltimatumEffect extends OneShotEffect {
|
||||
|
||||
private static final FilterCard filter = new FilterPermanentCard();
|
||||
private static final FilterCard filter = new FilterPermanentCard("any number of permanent cards");
|
||||
|
||||
GenesisUltimatumEffect() {
|
||||
super(Outcome.Benefit);
|
||||
|
@ -69,8 +69,8 @@ class GenesisUltimatumEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
Cards toHand = new CardsImpl(player.getLibrary().getTopCards(game, 5));
|
||||
player.lookAtCards("", toHand, game);
|
||||
TargetCard targetCard = new TargetCardInHand(0, Integer.MAX_VALUE, filter);
|
||||
// player.lookAtCards("", toHand, game);
|
||||
TargetCard targetCard = new TargetCardInLibrary(0, 5, filter);
|
||||
player.choose(outcome, toHand, targetCard, game);
|
||||
Cards toBattlefield = new CardsImpl(targetCard.getTargets());
|
||||
if (player.moveCards(toBattlefield, Zone.BATTLEFIELD, source, game)) {
|
||||
|
|
Loading…
Reference in a new issue