This commit is contained in:
Jeff 2018-12-17 09:52:37 -06:00
parent 3960ad7444
commit d6dfeebe0d

View file

@ -6,7 +6,6 @@ import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.Cost;
import mage.abilities.costs.common.RemoveVariableCountersSourceCost;
import mage.abilities.costs.common.RemoveVariableCountersTargetCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.continuous.GainControlTargetEffect;
import mage.abilities.keyword.EvolveAbility;
@ -79,8 +78,8 @@ enum SimicManipulatorAdjuster implements TargetAdjuster {
if (sourcePermanent != null) {
int xValue = 0;
for (Cost cost : ability.getCosts()) {
if (cost instanceof RemoveVariableCountersTargetCost) {
xValue = ((RemoveVariableCountersTargetCost) cost).getAmount();
if (cost instanceof RemoveVariableCountersSourceCost) {
xValue = ((RemoveVariableCountersSourceCost) cost).getAmount();
break;
}
}