- KTK: Added Empty the Pits

This commit is contained in:
swordshine
2014-09-16 07:39:39 +00:00
parent 5e09534c2e
commit f443f5943f
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public class ManaCostAdjustment {
if (sa.isDelve()) {
final Player pc = originalCard.getController();
final List<Card> mutableGrave = new ArrayList<Card>(pc.getCardsIn(ZoneType.Graveyard));
final List<Card> toExile = pc.getController().chooseCardsToDelve(cost.getColorlessManaAmount(), mutableGrave);
final List<Card> toExile = pc.getController().chooseCardsToDelve(cost.getUnpaidShards(ManaCostShard.COLORLESS), mutableGrave);
for (final Card c : toExile) {
cost.decreaseColorlessMana(1);
if (!test) {

View File

@@ -630,7 +630,7 @@ public class PlayerControllerHuman extends PlayerController {
@Override
public List<Card> chooseCardsToDelve(int colorLessAmount, List<Card> grave) {
List<Card> toExile = new ArrayList<Card>();
int cardsInGrave = grave.size();
int cardsInGrave = Math.min(colorLessAmount, grave.size());
final Integer[] cntChoice = new Integer[cardsInGrave + 1];
for (int i = 0; i <= cardsInGrave; i++) {
cntChoice[i] = Integer.valueOf(i);
@@ -648,7 +648,7 @@ public class PlayerControllerHuman extends PlayerController {
break;
}
grave.remove(nowChosen);
grave.remove(gameView.getCard(nowChosen));
toExile.add(gameView.getCard(nowChosen));
}
return toExile;