forked from External/mage
move removeVariableManaCost from CardUtil to ManaCosts interface
This commit is contained in:
parent
05785f71b9
commit
7a4a0b9faa
2 changed files with 13 additions and 9 deletions
|
|
@ -163,15 +163,7 @@ public final class CardUtil {
|
|||
return adjustedCost;
|
||||
}
|
||||
|
||||
public static ManaCosts<ManaCost> removeVariableManaCost(ManaCosts<ManaCost> manaCosts) {
|
||||
ManaCosts<ManaCost> adjustedCost = new ManaCostsImpl<>();
|
||||
for (ManaCost manaCost : manaCosts) {
|
||||
if (!(manaCost instanceof VariableManaCost)) {
|
||||
adjustedCost.add(manaCost);
|
||||
}
|
||||
}
|
||||
return adjustedCost;
|
||||
}
|
||||
|
||||
|
||||
public static void reduceCost(SpellAbility spellAbility, ManaCosts<ManaCost> manaCostsToReduce) {
|
||||
adjustCost(spellAbility, manaCostsToReduce, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue