forked from External/mage
Implemented Void Beckoner
This commit is contained in:
parent
f067d059fd
commit
272f78e88a
3 changed files with 59 additions and 0 deletions
54
Mage.Sets/src/mage/cards/v/VoidBeckoner.java
Normal file
54
Mage.Sets/src/mage/cards/v/VoidBeckoner.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.CycleTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VoidBeckoner extends CardImpl {
|
||||
|
||||
public VoidBeckoner(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}{B}{B}");
|
||||
|
||||
this.subtype.add(SubType.NIGHTMARE);
|
||||
this.subtype.add(SubType.HORROR);
|
||||
this.power = new MageInt(8);
|
||||
this.toughness = new MageInt(8);
|
||||
|
||||
// Deathtouch
|
||||
this.addAbility(DeathtouchAbility.getInstance());
|
||||
|
||||
// Cycling {2}{B}
|
||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}{B}")));
|
||||
|
||||
// When you cycle Void Beckoner, put a deathtouch counter on target creature you control.
|
||||
Ability ability = new CycleTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.DEATHTOUCH.createInstance())
|
||||
);
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private VoidBeckoner(final VoidBeckoner card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoidBeckoner copy() {
|
||||
return new VoidBeckoner(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -32,5 +32,6 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gloom Pangolin", 89, Rarity.COMMON, mage.cards.g.GloomPangolin.class));
|
||||
cards.add(new SetCardInfo("Mosscoat Goriak", 167, Rarity.COMMON, mage.cards.m.MosscoatGoriak.class));
|
||||
cards.add(new SetCardInfo("Pacifism", 25, Rarity.COMMON, mage.cards.p.Pacifism.class));
|
||||
cards.add(new SetCardInfo("Void Beckoner", 373, Rarity.UNCOMMON, mage.cards.v.VoidBeckoner.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package mage.counters;
|
||||
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
|
||||
/**
|
||||
|
|
@ -30,6 +31,7 @@ public enum CounterType {
|
|||
CUBE("cube"),
|
||||
CURRENCY("currency"),
|
||||
DEATH("death"),
|
||||
DEATHTOUCH("deathtouch"),
|
||||
DELAY("delay"),
|
||||
DEPLETION("depletion"),
|
||||
DESPAIR("despair"),
|
||||
|
|
@ -195,6 +197,8 @@ public enum CounterType {
|
|||
return new BoostCounter(-2, -1, amount);
|
||||
case M2M2:
|
||||
return new BoostCounter(-2, -2, amount);
|
||||
case DEATHTOUCH:
|
||||
return new AbilityCounter(DeathtouchAbility.getInstance());
|
||||
case TRAMPLE:
|
||||
return new AbilityCounter(TrampleAbility.getInstance());
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue