mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Ability Cost wasn't taking changeCost into account.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user