Fix Turbulent Dreams. (#6269)

More specifically get the value of X from the discard cost not the mana cost and correctly set it to target exactly x permanents.
Fixes https://github.com/magefree/mage/issues/6264
This commit is contained in:
Samuel Sandeen 2020-02-08 19:26:16 -05:00 committed by GitHub
parent 6674ca5d20
commit def8ef0a26

View file

@ -52,7 +52,7 @@ enum TurbulentDreamsAdjuster implements TargetAdjuster {
@Override
public void adjustTargets(Ability ability, Game game) {
Target target = new TargetPermanent(0, ability.getManaCostsToPay().getX(), filter, false);
Target target = new TargetPermanent(ability.getCosts().getVariableCosts().get(0).getAmount(), filter);
ability.addTarget(target);
}
}