Fix cards which incorrectly target rather than choose

This commit is contained in:
Thomas Winwood 2019-04-08 16:43:16 +01:00
parent bd6bb7b796
commit eaa05b29c5
2 changed files with 5 additions and 0 deletions

View file

@ -90,6 +90,7 @@ class DawnbreakReclaimerEffect extends OneShotEffect {
MageObject sourceObject = source.getSourceObject(game);
if (controller != null && sourceObject != null) {
TargetCardInOpponentsGraveyard targetOpponentGraveyard = new TargetCardInOpponentsGraveyard(new FilterCreatureCard("a creature card in an opponent's graveyard"));
targetOpponentGraveyard.setNotTarget(true);
Player opponent = null;
Card cardOpponentGraveyard = null;
if (targetOpponentGraveyard.canChoose(source.getSourceId(), source.getControllerId(), game)) {
@ -103,6 +104,7 @@ class DawnbreakReclaimerEffect extends OneShotEffect {
if (opponent == null) {
// if no card from opponent was available controller has to chose an opponent to select a creature card in controllers graveyard
TargetOpponent targetOpponent = new TargetOpponent(true);
targetOpponent.setNotTarget(true);
controller.choose(outcome, targetOpponent, source.getSourceId(), game);
opponent = game.getPlayer(targetOpponent.getFirstTarget());
if (opponent != null) {

View file

@ -84,6 +84,7 @@ class GruesomeMenagerieEffect extends OneShotEffect {
Cards cards = new CardsImpl();
Target target;
target = new TargetCardInYourGraveyard(filter1);
target.setNotTarget(true);
if (player.choose(outcome, target, source.getSourceId(), game)) {
Card card = game.getCard(target.getFirstTarget());
if (card != null) {
@ -91,6 +92,7 @@ class GruesomeMenagerieEffect extends OneShotEffect {
}
}
target = new TargetCardInYourGraveyard(filter2);
target.setNotTarget(true);
if (player.choose(outcome, target, source.getSourceId(), game)) {
Card card = game.getCard(target.getFirstTarget());
if (card != null) {
@ -98,6 +100,7 @@ class GruesomeMenagerieEffect extends OneShotEffect {
}
}
target = new TargetCardInYourGraveyard(filter3);
target.setNotTarget(true);
if (player.choose(outcome, target, source.getSourceId(), game)) {
Card card = game.getCard(target.getFirstTarget());
if (card != null) {