*Made Delved cards not exile until cost is fully paid

This commit is contained in:
Hellfish
2015-02-14 09:09:04 +00:00
parent e0e38b6cc4
commit 8e62e17f65
2 changed files with 12 additions and 3 deletions

View File

@@ -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);
}
}
}

View File

@@ -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();
}
}
/**