forked from External/mage
56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.ExileFromGraveCost;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.FilterCard;
|
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
|
import mage.target.common.TargetCardInYourGraveyard;
|
|
|
|
/**
|
|
*
|
|
* @author North
|
|
*/
|
|
public final class ScarredVinebreeder extends CardImpl {
|
|
|
|
private static final FilterCard filter = new FilterCard("Elf card from your graveyard");
|
|
|
|
static {
|
|
filter.add(new SubtypePredicate(SubType.ELF));
|
|
}
|
|
|
|
public ScarredVinebreeder(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
|
|
this.subtype.add(SubType.ELF);
|
|
this.subtype.add(SubType.SHAMAN);
|
|
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(1);
|
|
|
|
// {2}{B}, Exile an Elf card from your graveyard: Scarred Vinebreeder gets +3/+3 until end of turn.
|
|
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
|
new BoostSourceEffect(3, 3, Duration.EndOfTurn),
|
|
new ManaCostsImpl("{2}{B}"));
|
|
ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(filter)));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public ScarredVinebreeder(final ScarredVinebreeder card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ScarredVinebreeder copy() {
|
|
return new ScarredVinebreeder(this);
|
|
}
|
|
}
|