mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Implement several cards and tests for some of the more complex cards.
This also makes a small change to AbilityImpl's handling of variable costs which may not be needed.
This commit is contained in:
parent
7c0b11c641
commit
f9b0befac3
8 changed files with 733 additions and 1 deletions
|
|
@ -493,7 +493,10 @@ public abstract class AbilityImpl implements Ability {
|
|||
for (VariableCost variableCost : this.costs.getVariableCosts()) {
|
||||
if (!(variableCost instanceof VariableManaCost)) {
|
||||
int xValue = variableCost.announceXValue(this, game);
|
||||
costs.add(variableCost.getFixedCostsFromAnnouncedValue(xValue));
|
||||
Cost fixedCost = variableCost.getFixedCostsFromAnnouncedValue(xValue);
|
||||
if (fixedCost != null) {
|
||||
costs.add(fixedCost);
|
||||
}
|
||||
// set the xcosts to paid
|
||||
variableCost.setAmount(xValue);
|
||||
((Cost) variableCost).setPaid();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue