forked from External/mage
51 lines
1.4 KiB
Java
51 lines
1.4 KiB
Java
|
|
|
|
package mage.cards.a;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.TapSourceCost;
|
|
import mage.abilities.effects.common.UntapTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.common.FilterLandPermanent;
|
|
import mage.target.common.TargetLandPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public final class ArborElf extends CardImpl {
|
|
|
|
private static final FilterLandPermanent filter = new FilterLandPermanent(SubType.FOREST, "Forest");
|
|
|
|
public ArborElf(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
|
|
this.subtype.add(SubType.ELF);
|
|
this.subtype.add(SubType.DRUID);
|
|
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(1);
|
|
|
|
// (T): Untap target Forest.
|
|
Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost());
|
|
TargetLandPermanent target = new TargetLandPermanent(filter);
|
|
ability.addTarget(target);
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private ArborElf(final ArborElf card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ArborElf copy() {
|
|
return new ArborElf(this);
|
|
}
|
|
|
|
}
|