From ba81bd45e1ed1469bd1bfd0c68cc4b3069a1b165 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 20 Apr 2020 22:10:20 -0400 Subject: [PATCH] fixed Fiend Artisan --- Mage.Sets/src/mage/cards/f/FiendArtisan.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/f/FiendArtisan.java b/Mage.Sets/src/mage/cards/f/FiendArtisan.java index abd1a9676d..fed489f0ac 100644 --- a/Mage.Sets/src/mage/cards/f/FiendArtisan.java +++ b/Mage.Sets/src/mage/cards/f/FiendArtisan.java @@ -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);