forked from External/mage
41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
|
|
package mage.cards.w;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.common.TargetCardInLibrary;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
*
|
|
* @author spjspj
|
|
*/
|
|
public final class WildWanderer extends CardImpl {
|
|
|
|
public WildWanderer(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
|
|
this.subtype.add(SubType.ELF);
|
|
this.subtype.add(SubType.DRUID);
|
|
this.power = new MageInt(3);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// When Wild Wanderer enters the battlefield, you may search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
|
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true), true));
|
|
}
|
|
|
|
private WildWanderer(final WildWanderer card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public WildWanderer copy() {
|
|
return new WildWanderer(this);
|
|
}
|
|
}
|