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:
samuelsandeen 2016-07-10 18:39:42 -04:00
parent 7c0b11c641
commit f9b0befac3
8 changed files with 733 additions and 1 deletions

View file

@ -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();