forked from External/mage
[DMU] Implemented Karn, Living Legacy
This commit is contained in:
parent
02968c9cc1
commit
b9bbb4d1b3
4 changed files with 243 additions and 0 deletions
|
|
@ -0,0 +1,36 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapTargetCost;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.filter.common.FilterControlledArtifactPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.permanent.TappedPredicate;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KarnLivingLegacyEmblem extends Emblem {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledArtifactPermanent("an untapped artifact you control");
|
||||
|
||||
static {
|
||||
filter.add(TappedPredicate.UNTAPPED);
|
||||
}
|
||||
|
||||
// -7: You get an emblem with "Tap an untapped artifact you control: This emblem deals 1 damage to any target."
|
||||
public KarnLivingLegacyEmblem() {
|
||||
this.setName("Emblem Karn");
|
||||
this.setExpansionSetCodeForImage("DMU");
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new DamageTargetEffect(1, "this emblem"),
|
||||
new TapTargetCost(new TargetControlledPermanent(filter))
|
||||
);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.getAbilities().add(ability);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue