Fix delve.

Delve should not target the cards it exiles.
This commit is contained in:
Nathaniel Brandes 2017-03-07 00:03:37 -08:00
parent 0280c6231b
commit d6e4ef793e

View file

@ -108,9 +108,8 @@ public class DelveAbility extends SimpleStaticAbility implements AlternateManaPa
if (!controller.getManaPool().isAutoPayment() && unpaidAmount > 1) {
unpaidAmount = 1;
}
// TODO: make delve not target cards in graveyard. setNotTarget?
specialAction.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(
0, Math.min(controller.getGraveyard().size(), unpaidAmount), new FilterCard())));
0, Math.min(controller.getGraveyard().size(), unpaidAmount), new FilterCard(), true)));
if (specialAction.canActivate(source.getControllerId(), game)) {
game.getState().getSpecialActions().add(specialAction);
}