mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
*Made Delved cards not exile until cost is fully paid
This commit is contained in:
@@ -89,6 +89,7 @@ public class ManaCostAdjustment {
|
||||
|
||||
if (sa.isSpell()) {
|
||||
if (sa.isDelve()) {
|
||||
sa.getHostCard().clearDelved();
|
||||
final Player pc = sa.getActivatingPlayer();
|
||||
final CardCollection mutableGrave = new CardCollection(pc.getCardsIn(ZoneType.Graveyard));
|
||||
final CardCollectionView toExile = pc.getController().chooseCardsToDelve(cost.getUnpaidShards(ManaCostShard.COLORLESS), mutableGrave);
|
||||
@@ -96,7 +97,7 @@ public class ManaCostAdjustment {
|
||||
cost.decreaseColorlessMana(1);
|
||||
if (!test) {
|
||||
sa.getHostCard().addDelved(c);
|
||||
pc.getGame().getAction().exile(c);
|
||||
//pc.getGame().getAction().exile(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,8 +98,16 @@ public class HumanPlay {
|
||||
if (sa.isSpell() && !source.isCopiedSpell()) {
|
||||
sa.setHostCard(p.getGame().getAction().moveToStack(source));
|
||||
}
|
||||
|
||||
p.getGame().getStack().add(sa);
|
||||
}
|
||||
|
||||
if(sa.isDelve()) {
|
||||
for(Card c : sa.getHostCard().getDelved()) {
|
||||
p.getGame().getAction().exile(c);
|
||||
}
|
||||
sa.getHostCard().clearDelved();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user