mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- KTK: Added Empty the Pits
This commit is contained in:
@@ -40,7 +40,7 @@ public class ManaCostAdjustment {
|
|||||||
if (sa.isDelve()) {
|
if (sa.isDelve()) {
|
||||||
final Player pc = originalCard.getController();
|
final Player pc = originalCard.getController();
|
||||||
final List<Card> mutableGrave = new ArrayList<Card>(pc.getCardsIn(ZoneType.Graveyard));
|
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) {
|
for (final Card c : toExile) {
|
||||||
cost.decreaseColorlessMana(1);
|
cost.decreaseColorlessMana(1);
|
||||||
if (!test) {
|
if (!test) {
|
||||||
|
|||||||
@@ -630,7 +630,7 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
@Override
|
@Override
|
||||||
public List<Card> chooseCardsToDelve(int colorLessAmount, List<Card> grave) {
|
public List<Card> chooseCardsToDelve(int colorLessAmount, List<Card> grave) {
|
||||||
List<Card> toExile = new ArrayList<Card>();
|
List<Card> toExile = new ArrayList<Card>();
|
||||||
int cardsInGrave = grave.size();
|
int cardsInGrave = Math.min(colorLessAmount, grave.size());
|
||||||
final Integer[] cntChoice = new Integer[cardsInGrave + 1];
|
final Integer[] cntChoice = new Integer[cardsInGrave + 1];
|
||||||
for (int i = 0; i <= cardsInGrave; i++) {
|
for (int i = 0; i <= cardsInGrave; i++) {
|
||||||
cntChoice[i] = Integer.valueOf(i);
|
cntChoice[i] = Integer.valueOf(i);
|
||||||
@@ -648,7 +648,7 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
grave.remove(nowChosen);
|
grave.remove(gameView.getCard(nowChosen));
|
||||||
toExile.add(gameView.getCard(nowChosen));
|
toExile.add(gameView.getCard(nowChosen));
|
||||||
}
|
}
|
||||||
return toExile;
|
return toExile;
|
||||||
|
|||||||
Reference in New Issue
Block a user