forked from External/mage
[WOE] Implement Heartflame Duelist (#11032)
This commit is contained in:
parent
13fa154a3d
commit
b35aaf07fc
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/h/HeartflameDuelist.java
Normal file
57
Mage.Sets/src/mage/cards/h/HeartflameDuelist.java
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledSpellsEffect;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class HeartflameDuelist extends AdventureCard {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("instant and sorcery spells you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(CardType.INSTANT.getPredicate(), CardType.SORCERY.getPredicate()));
|
||||
}
|
||||
|
||||
public HeartflameDuelist(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.INSTANT}, "{1}{W}", "Heartflame Slash", "{2}{R}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Instant and sorcery spells you control have lifelink.
|
||||
Effect effect = new GainAbilityControlledSpellsEffect(LifelinkAbility.getInstance(), filter);
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
|
||||
|
||||
// Heartflame Slash
|
||||
// Heartflame Slash deals 3 damage to any target.
|
||||
this.getSpellCard().getSpellAbility().addEffect(new DamageTargetEffect(3));
|
||||
this.getSpellCard().getSpellAbility().addTarget(new TargetAnyTarget());
|
||||
}
|
||||
|
||||
private HeartflameDuelist(final HeartflameDuelist card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HeartflameDuelist copy() {
|
||||
return new HeartflameDuelist(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -114,6 +114,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gumdrop Poisoner", 93, Rarity.RARE, mage.cards.g.GumdropPoisoner.class));
|
||||
cards.add(new SetCardInfo("Hamlet Glutton", 173, Rarity.COMMON, mage.cards.h.HamletGlutton.class));
|
||||
cards.add(new SetCardInfo("Harried Spearguard", 135, Rarity.COMMON, mage.cards.h.HarriedSpearguard.class));
|
||||
cards.add(new SetCardInfo("Heartflame Duelist", 228, Rarity.RARE, mage.cards.h.HeartflameDuelist.class));
|
||||
cards.add(new SetCardInfo("Hearth Elemental", 136, Rarity.UNCOMMON, mage.cards.h.HearthElemental.class));
|
||||
cards.add(new SetCardInfo("High Fae Negotiator", 94, Rarity.UNCOMMON, mage.cards.h.HighFaeNegotiator.class));
|
||||
cards.add(new SetCardInfo("Hollow Scavenger", 174, Rarity.COMMON, mage.cards.h.HollowScavenger.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue