fixed Mass Manipulation targeting issues

This commit is contained in:
Evan Kranzler 2019-01-12 17:18:31 -05:00
parent 36852c0bd5
commit 0311ca8c6e
2 changed files with 2 additions and 2 deletions

View file

@ -45,6 +45,6 @@ enum MassManipulationAdjuster implements TargetAdjuster {
@Override @Override
public void adjustTargets(Ability ability, Game game) { public void adjustTargets(Ability ability, Game game) {
ability.getTargets().clear(); ability.getTargets().clear();
ability.addTarget(new TargetCreatureOrPlaneswalker(ability.getManaCosts().getX())); ability.addTarget(new TargetCreatureOrPlaneswalker(ability.getManaCostsToPay().getX()));
} }
} }

View file

@ -23,7 +23,7 @@ public class TargetCreatureOrPlaneswalker extends TargetPermanent {
} }
public TargetCreatureOrPlaneswalker(int minNumTargets, int maxNumTargets) { public TargetCreatureOrPlaneswalker(int minNumTargets, int maxNumTargets) {
this(1, 1, new FilterCreatureOrPlaneswalkerPermanent(), false); this(minNumTargets, maxNumTargets, new FilterCreatureOrPlaneswalkerPermanent(), false);
} }
public TargetCreatureOrPlaneswalker(int minNumTargets, int maxNumTargets, FilterCreatureOrPlaneswalkerPermanent filter, boolean notTarget) { public TargetCreatureOrPlaneswalker(int minNumTargets, int maxNumTargets, FilterCreatureOrPlaneswalkerPermanent filter, boolean notTarget) {