Fixed canPlay method to care abou alternate casting costs.

This commit is contained in:
LevelX2 2014-05-26 16:59:06 +02:00
parent 63208c33ed
commit a15deab99d

View file

@ -188,4 +188,12 @@ public class AlternativeCostSourceAbility extends StaticAbility<AlternativeCostS
} }
return sb.toString(); return sb.toString();
} }
@Override
public Costs<Cost> getCosts() {
Costs<Cost> alterCosts = new CostsImpl<>();
alterCosts.addAll(alternateCosts);
return alterCosts;
}
} }