mirror of
https://github.com/magefree/mage.git
synced 2026-01-20 18:29:56 -08:00
49 lines
1.5 KiB
Java
49 lines
1.5 KiB
Java
|
|
package mage.cards.e;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.SacrificeSourceCost;
|
|
import mage.abilities.costs.common.TapSourceCost;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.target.common.TargetEnchantmentPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author North
|
|
*/
|
|
public final class ElvishHexhunter extends CardImpl {
|
|
|
|
public ElvishHexhunter(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G/W}");
|
|
this.subtype.add(SubType.ELF);
|
|
this.subtype.add(SubType.SHAMAN);
|
|
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(1);
|
|
|
|
// {GW}, {tap}, Sacrifice Elvish Hexhunter: Destroy target enchantment.
|
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl<>("{G/W}"));
|
|
ability.addCost(new TapSourceCost());
|
|
ability.addCost(new SacrificeSourceCost());
|
|
ability.addTarget(new TargetEnchantmentPermanent());
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private ElvishHexhunter(final ElvishHexhunter card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ElvishHexhunter copy() {
|
|
return new ElvishHexhunter(this);
|
|
}
|
|
}
|