mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Fiend Artisan
This commit is contained in:
parent
1fb3bba0ca
commit
ba81bd45e1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue