Fix Exhume

Set the "notTarget" flag for the ability to allow it to work under cards restricting targeting of cards in graveyards.
This commit is contained in:
JRHerlehy 2018-03-07 23:26:02 -08:00
parent 9f6e522969
commit 9dbd1e8b41

View file

@ -94,6 +94,7 @@ class ExhumeEffect extends OneShotEffect {
FilterCreatureCard filterCreatureCard = new FilterCreatureCard("creature card from your graveyard");
filterCreatureCard.add(new OwnerIdPredicate(playerId));
TargetCardInGraveyard target = new TargetCardInGraveyard(filterCreatureCard);
target.setNotTarget(true);
if (target.canChoose(playerId, game)
&& player.chooseTarget(outcome, target, source, game)) {
Card card = game.getCard(target.getFirstTarget());