mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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]);
|
||||
if(choice.equals(0)) {
|
||||
payment.setPayExileFromHand(true);
|
||||
payment.getAbility().addExiledCost(card);
|
||||
AllZone.GameAction.exile(card);
|
||||
stop();
|
||||
payment.payCost();
|
||||
@@ -1038,6 +1039,7 @@ public class Cost_Payment {
|
||||
null, possibleValues, possibleValues[0]);
|
||||
if(choice.equals(0)) {
|
||||
payment.setPayExileFromGrave(true);
|
||||
payment.getAbility().addExiledCost(card);
|
||||
AllZone.GameAction.exile(card);
|
||||
stop();
|
||||
payment.payCost();
|
||||
@@ -1150,6 +1152,7 @@ public class Cost_Payment {
|
||||
public void selectCard(Card card, PlayerZone zone) {
|
||||
if(typeList.contains(card)) {
|
||||
nExiles++;
|
||||
payment.getAbility().addExiledCost(card);
|
||||
AllZone.GameAction.exile(card);
|
||||
typeList.remove(card);
|
||||
//in case nothing else to exile
|
||||
@@ -1199,6 +1202,7 @@ public class Cost_Payment {
|
||||
if (o != null) {
|
||||
Card c = (Card) o;
|
||||
typeList.remove(c);
|
||||
payment.getAbility().addExiledCost(c);
|
||||
AllZone.GameAction.exile(c);
|
||||
if (i == nNeeded-1) done();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user