mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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.addComesIntoPlayCommand(CardFactoryUtil.fading(card, power));
|
||||||
card.addSpellAbility(CardFactoryUtil.fading_desc(card, power));
|
card.addSpellAbility(CardFactoryUtil.fading_desc(card, power));
|
||||||
}
|
}
|
||||||
}//Vanishing
|
}//Fading
|
||||||
|
|
||||||
if(hasKeyword(card, "Vanishing") != -1) {
|
if(hasKeyword(card, "Vanishing") != -1) {
|
||||||
int n = hasKeyword(card, "Vanishing");
|
int n = hasKeyword(card, "Vanishing");
|
||||||
|
|||||||
@@ -381,6 +381,10 @@ public class Cost_Payment {
|
|||||||
AllZone.Stack.add(ability);
|
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) {
|
public static Input input_discardCost(final int nCards, final String discType, final CardList handList, SpellAbility sa, final Cost_Payment payment) {
|
||||||
final SpellAbility sp = sa;
|
final SpellAbility sp = sa;
|
||||||
Input target = new Input() {
|
Input target = new Input() {
|
||||||
|
|||||||
@@ -3616,6 +3616,8 @@ public class GameAction {
|
|||||||
Target_Selection ts = new Target_Selection(sa.getTarget(), sa);
|
Target_Selection ts = new Target_Selection(sa.getTarget(), sa);
|
||||||
Cost_Payment payment = new Cost_Payment(sa.getPayCosts(), sa);
|
Cost_Payment payment = new Cost_Payment(sa.getPayCosts(), sa);
|
||||||
|
|
||||||
|
payment.changeCost();
|
||||||
|
|
||||||
SpellAbility_Requirements req = new SpellAbility_Requirements(sa, ts, payment);
|
SpellAbility_Requirements req = new SpellAbility_Requirements(sa, ts, payment);
|
||||||
req.fillRequirements();
|
req.fillRequirements();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user