mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
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:
parent
2fce670024
commit
b954173f99
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue