use of mage.filter.common.FilterArtifactCard in project mage by magefree.
the class CovertTechnicianEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
int damage = (Integer) getValue("damage");
FilterCard filter = new FilterArtifactCard("artifact card with mana value " + damage + " or less");
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, damage + 1));
return new PutCardFromHandOntoBattlefieldEffect(filter).apply(game, source);
}
Aggregations