mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Fix delve.
Delve should not target the cards it exiles.
This commit is contained in:
parent
0280c6231b
commit
d6e4ef793e
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue