foul-magics/Mage.Sets/src/mage/cards/p/PlowUnder.java
2021-02-02 17:07:37 -05:00

35 lines
920 B
Java

package mage.cards.p;
import java.util.UUID;
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.target.common.TargetLandPermanent;
/**
*
* @author Plopman
*/
public final class PlowUnder extends CardImpl {
public PlowUnder(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{G}{G}");
// Put two target lands on top of their owners' libraries.
this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
this.getSpellAbility().addTarget(new TargetLandPermanent(2,2, StaticFilters.FILTER_LANDS, false));
}
private PlowUnder(final PlowUnder card) {
super(card);
}
@Override
public PlowUnder copy() {
return new PlowUnder(this);
}
}