- Ability Cost wasn't taking changeCost into account.

This commit is contained in:
jendave
2011-08-06 08:23:47 +00:00
parent d565239f9d
commit 8f924e2ff4
3 changed files with 7 additions and 1 deletions

View File

@@ -10769,7 +10769,7 @@ public class CardFactory implements NewConstants {
card.addComesIntoPlayCommand(CardFactoryUtil.fading(card, power));
card.addSpellAbility(CardFactoryUtil.fading_desc(card, power));
}
}//Vanishing
}//Fading
if(hasKeyword(card, "Vanishing") != -1) {
int n = hasKeyword(card, "Vanishing");

View File

@@ -381,6 +381,10 @@ public class Cost_Payment {
AllZone.Stack.add(ability);
}
public void changeCost(){
cost.changeCost(ability);
}
public static Input input_discardCost(final int nCards, final String discType, final CardList handList, SpellAbility sa, final Cost_Payment payment) {
final SpellAbility sp = sa;
Input target = new Input() {

View File

@@ -3616,6 +3616,8 @@ public class GameAction {
Target_Selection ts = new Target_Selection(sa.getTarget(), sa);
Cost_Payment payment = new Cost_Payment(sa.getPayCosts(), sa);
payment.changeCost();
SpellAbility_Requirements req = new SpellAbility_Requirements(sa, ts, payment);
req.fillRequirements();
}