- 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

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