- Added Deep Spawn

This commit is contained in:
swordshine
2013-05-05 04:46:59 +00:00
parent 1b8103823c
commit 48b689f94a
3 changed files with 27 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ import forge.card.cost.Cost;
import forge.card.cost.CostDamage;
import forge.card.cost.CostDiscard;
import forge.card.cost.CostExile;
import forge.card.cost.CostMill;
import forge.card.cost.CostPart;
import forge.card.cost.CostPartMana;
import forge.card.cost.CostPartWithList;
@@ -448,6 +449,16 @@ public final class GameActionUtil {
p.payLife(amount, null);
}
else if (part instanceof CostMill) {
final int amount = getAmountFromPart(part, source, sourceAbility);
final List<Card> list = p.getCardsIn(ZoneType.Library);
if (list.size() < amount) return false;
if (!GuiDialog.confirm(source, "Do you want to mill " + amount + " card(s)?" + orString))
return false;
List<Card> listmill = p.getCardsIn(ZoneType.Library, amount);
((CostMill) part).executePayment(sourceAbility, listmill);
}
else if (part instanceof CostDamage) {
int amount = getAmountFromPartX(part, source, sourceAbility);
if (!p.canPayLife(amount))