Fixed #207. Exhume used player.choose instead of player.chooseTarget method what resulted in a dead game because choose doesn't handle the required option. Anyway it would be a good idea to commet or redesign the target area of mage.

This commit is contained in:
LevelX2 2013-04-24 00:32:21 +02:00
parent 2fce670024
commit b954173f99

View file

@ -95,7 +95,8 @@ class ExhumeEffect extends OneShotEffect<ExhumeEffect> {
if (player != null) { if (player != null) {
FilterCreatureCard filterCreatureCard = new FilterCreatureCard("creature card from your graveyard"); FilterCreatureCard filterCreatureCard = new FilterCreatureCard("creature card from your graveyard");
TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(filterCreatureCard); TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(filterCreatureCard);
if (player.choose(Outcome.PutCreatureInPlay, target, source.getSourceId(), game)) { target.setRequired(true);
if (player.chooseTarget(outcome, target, source, game)) {
Card card = game.getCard(target.getFirstTarget()); Card card = game.getCard(target.getFirstTarget());
if (card != null) { if (card != null) {
card.putOntoBattlefield(game, Zone.GRAVEYARD, source.getId(), player.getId()); card.putOntoBattlefield(game, Zone.GRAVEYARD, source.getId(), player.getId());