Delve bug comments, Delve should not target. See issue #1646

This commit is contained in:
drmDev 2016-07-25 06:08:31 -04:00
parent 4082f9c38d
commit 9d9265e02b

View file

@ -52,26 +52,26 @@ import mage.util.CardUtil;
* 702.65. Delve 702.65a Delve is a static ability that functions while the
* spell with delve is on the stack. Delve means For each generic mana in
* this spells total cost, you may exile a card from your graveyard rather than
* pay that mana. The delve ability isnt an additional or alternative cost and
* pay that mana. The delve ability isn't an additional or alternative cost and
* applies only after the total cost of the spell with delve is determined.
* 702.65b Multiple instances of delve on the same spell are redundant.
*
* * The rules for delve have changed slightly since it was last in an
* The rules for delve have changed slightly since it was last in an
* expansion. Previously, delve reduced the cost to cast a spell. Under the
* current rules, you exile cards from your graveyard at the same time you pay
* the spells cost. Exiling a card this way is simply another way to pay that
* cost. * Delve doesnt change a spells mana cost or converted mana cost. For
* cost. * Delve doesn't change a spells mana cost or converted mana cost. For
* example, Dead Drops converted mana cost is 10 even if you exiled three cards
* to cast it. * You cant exile cards to pay for the colored mana requirements
* of a spell with delve. * You cant exile more cards than the generic mana
* requirement of a spell with delve. For example, you cant exile more than
* nine cards from your graveyard to cast Dead Drop. * Because delve isnt an
* nine cards from your graveyard to cast Dead Drop. * Because delve isn't an
* alternative cost, it can be used in conjunction with alternative costs.
*
* @author LevelX2
*
* TODO: Change card exiling to a way to pay mana costs, now it's maybe not
* passible to pay costs from effects that increase the mana costs.
* possible to pay costs from effects that increase the mana costs.
*/
public class DelveAbility extends SimpleStaticAbility implements AlternateManaPaymentAbility {
@ -106,6 +106,7 @@ 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())));
if (specialAction.canActivate(source.getControllerId(), game)) {