From dfaf9e0a51b4ac81f513cea4f235345d7eb4fb50 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 11 Jan 2021 20:06:46 -0500 Subject: [PATCH] [KHM] Implemented Axgard Cavalry --- Mage.Sets/src/mage/cards/a/AxgardCavalry.java | 47 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AxgardCavalry.java diff --git a/Mage.Sets/src/mage/cards/a/AxgardCavalry.java b/Mage.Sets/src/mage/cards/a/AxgardCavalry.java new file mode 100644 index 0000000000..70743036af --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AxgardCavalry.java @@ -0,0 +1,47 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AxgardCavalry extends CardImpl { + + public AxgardCavalry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.DWARF); + this.subtype.add(SubType.BERSERKER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {T}: Target creature gains haste until end of turn. + Ability ability = new SimpleActivatedAbility(new GainAbilityTargetEffect( + HasteAbility.getInstance(), Duration.EndOfTurn + ), new TapSourceCost()); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private AxgardCavalry(final AxgardCavalry card) { + super(card); + } + + @Override + public AxgardCavalry copy() { + return new AxgardCavalry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index c12132c404..07ea506bcc 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -54,6 +54,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Arctic Treeline", 249, Rarity.COMMON, mage.cards.a.ArcticTreeline.class)); cards.add(new SetCardInfo("Armed and Armored", 379, Rarity.UNCOMMON, mage.cards.a.ArmedAndArmored.class)); cards.add(new SetCardInfo("Augury Raven", 44, Rarity.COMMON, mage.cards.a.AuguryRaven.class)); + cards.add(new SetCardInfo("Axgard Cavalry", 121, Rarity.COMMON, mage.cards.a.AxgardCavalry.class)); cards.add(new SetCardInfo("Barkchannel Pathway", 251, Rarity.RARE, mage.cards.b.BarkchannelPathway.class)); cards.add(new SetCardInfo("Bearded Axe", 388, Rarity.UNCOMMON, mage.cards.b.BeardedAxe.class)); cards.add(new SetCardInfo("Behold the Multiverse", 46, Rarity.COMMON, mage.cards.b.BeholdTheMultiverse.class));