forked from External/mage
[KHM] Niko Aris
This commit is contained in:
parent
6cb89b00ed
commit
01261575a8
4 changed files with 222 additions and 0 deletions
39
Mage/src/main/java/mage/game/permanent/token/ShardToken.java
Normal file
39
Mage/src/main/java/mage/game/permanent/token/ShardToken.java
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
|
||||
public final class ShardToken extends TokenImpl {
|
||||
|
||||
public ShardToken() {
|
||||
super("Shard", "Shard token");
|
||||
cardType.add(CardType.ENCHANTMENT);
|
||||
subtype.add(SubType.SHARD);
|
||||
|
||||
// {2}, Sacrifice this enchantment: Scry 1, then draw a card.
|
||||
Ability ability = new SimpleActivatedAbility(new ScryEffect(1), new GenericManaCost(2));
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1).concatBy(", then"));
|
||||
SacrificeSourceCost cost = new SacrificeSourceCost();
|
||||
cost.setText("Sacrifice this enchantment");
|
||||
ability.addCost(cost);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public ShardToken(final ShardToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public ShardToken copy() {
|
||||
return new ShardToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue