fixed Fiend Artisan

This commit is contained in:
Evan Kranzler 2020-04-20 22:10:20 -04:00
parent 1fb3bba0ca
commit ba81bd45e1

View file

@ -92,7 +92,7 @@ class FiendArtisanEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
int xValue = source.getCosts().getVariableCosts().get(0).getAmount();
int xValue = source.getManaCostsToPay().getX();
FilterCard filter = new FilterCreatureCard("creature card with converted mana cost " + xValue + " or less");
filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, xValue + 1));
return new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filter)).apply(game, source);