forked from External/mage
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
package mage.cards.o;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.dynamicvalue.common.HighestConvertedManaCostValue;
|
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.StaticFilters;
|
|
|
|
/**
|
|
*
|
|
* @author TheElk801
|
|
*/
|
|
public final class OneWithTheMachine extends CardImpl {
|
|
|
|
public OneWithTheMachine(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}");
|
|
|
|
// Draw cards equal to the highest converted mana cost among artifacts you control.
|
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(
|
|
new HighestConvertedManaCostValue(StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT)
|
|
).setText("Draw cards equal to the highest converted mana cost among artifacts you control"));
|
|
}
|
|
|
|
private OneWithTheMachine(final OneWithTheMachine card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public OneWithTheMachine copy() {
|
|
return new OneWithTheMachine(this);
|
|
}
|
|
}
|