Merge pull request #2061 from Dilnu/master

Implement 6 Cards and tests for two of them.
This commit is contained in:
LevelX2 2016-07-11 18:23:00 +02:00 committed by GitHub
commit 1b2f1efb00
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();