mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
piggyback ExileFromHand and ExileFromGrave on getExiledCost() for purposes of calculateAmount()
This commit is contained in:
@@ -1006,6 +1006,7 @@ public class Cost_Payment {
|
|||||||
null, possibleValues, possibleValues[0]);
|
null, possibleValues, possibleValues[0]);
|
||||||
if(choice.equals(0)) {
|
if(choice.equals(0)) {
|
||||||
payment.setPayExileFromHand(true);
|
payment.setPayExileFromHand(true);
|
||||||
|
payment.getAbility().addExiledCost(card);
|
||||||
AllZone.GameAction.exile(card);
|
AllZone.GameAction.exile(card);
|
||||||
stop();
|
stop();
|
||||||
payment.payCost();
|
payment.payCost();
|
||||||
@@ -1038,6 +1039,7 @@ public class Cost_Payment {
|
|||||||
null, possibleValues, possibleValues[0]);
|
null, possibleValues, possibleValues[0]);
|
||||||
if(choice.equals(0)) {
|
if(choice.equals(0)) {
|
||||||
payment.setPayExileFromGrave(true);
|
payment.setPayExileFromGrave(true);
|
||||||
|
payment.getAbility().addExiledCost(card);
|
||||||
AllZone.GameAction.exile(card);
|
AllZone.GameAction.exile(card);
|
||||||
stop();
|
stop();
|
||||||
payment.payCost();
|
payment.payCost();
|
||||||
@@ -1150,6 +1152,7 @@ public class Cost_Payment {
|
|||||||
public void selectCard(Card card, PlayerZone zone) {
|
public void selectCard(Card card, PlayerZone zone) {
|
||||||
if(typeList.contains(card)) {
|
if(typeList.contains(card)) {
|
||||||
nExiles++;
|
nExiles++;
|
||||||
|
payment.getAbility().addExiledCost(card);
|
||||||
AllZone.GameAction.exile(card);
|
AllZone.GameAction.exile(card);
|
||||||
typeList.remove(card);
|
typeList.remove(card);
|
||||||
//in case nothing else to exile
|
//in case nothing else to exile
|
||||||
@@ -1199,6 +1202,7 @@ public class Cost_Payment {
|
|||||||
if (o != null) {
|
if (o != null) {
|
||||||
Card c = (Card) o;
|
Card c = (Card) o;
|
||||||
typeList.remove(c);
|
typeList.remove(c);
|
||||||
|
payment.getAbility().addExiledCost(c);
|
||||||
AllZone.GameAction.exile(c);
|
AllZone.GameAction.exile(c);
|
||||||
if (i == nNeeded-1) done();
|
if (i == nNeeded-1) done();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user