mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Added Deep Spawn
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user