forked from External/mage
Fixed tests with multiple X values
This commit is contained in:
parent
b64a75aa4b
commit
0e2cfb7def
11 changed files with 102 additions and 48 deletions
|
|
@ -162,13 +162,15 @@ public class SpellAbility extends ActivatedAbilityImpl {
|
|||
return 0;
|
||||
}
|
||||
|
||||
// mana cost instances
|
||||
for (ManaCost manaCost : card.getManaCost()) {
|
||||
if (manaCost instanceof VariableManaCost) {
|
||||
xMultiplier = ((VariableManaCost) manaCost).getMultiplier();
|
||||
xMultiplier = ((VariableManaCost) manaCost).getXInstancesCount();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// mana cost final X value
|
||||
boolean hasNonManaXCost = false;
|
||||
for (Cost cost : getCosts()) {
|
||||
if (cost instanceof VariableCost) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue