From 2e6cf41b11b89275a00e74d8fe1cd517091dd648 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 17 Sep 2022 11:16:18 -0400 Subject: [PATCH] [40K] Implemented Knight Paladin --- Mage.Sets/src/mage/cards/k/KnightPaladin.java | 48 +++++++++++++++++++ Mage.Sets/src/mage/sets/Warhammer40000.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KnightPaladin.java diff --git a/Mage.Sets/src/mage/cards/k/KnightPaladin.java b/Mage.Sets/src/mage/cards/k/KnightPaladin.java new file mode 100644 index 0000000000..aadd92f140 --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KnightPaladin.java @@ -0,0 +1,48 @@ +package mage.cards.k; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.DamagePlayersEffect; +import mage.abilities.keyword.CrewAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KnightPaladin extends CardImpl { + + public KnightPaladin(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}"); + + this.subtype.add(SubType.VEHICLE); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Rapid-fire Battle Cannon -- When Knight Paladin enters the battlefield, it deals 4 damage to each opponent. + this.addAbility(new EntersBattlefieldTriggeredAbility(new DamagePlayersEffect( + 4, TargetController.OPPONENT, "it" + )).withFlavorWord("Rapid-fire Battle Cannon")); + + // Crew 1 + this.addAbility(new CrewAbility(1)); + } + + private KnightPaladin(final KnightPaladin card) { + super(card); + } + + @Override + public KnightPaladin copy() { + return new KnightPaladin(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index 84d3e5aabd..f360dce704 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -115,6 +115,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Inspiring Call", 217, Rarity.UNCOMMON, mage.cards.i.InspiringCall.class)); cards.add(new SetCardInfo("Island", 307, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Kill! Maim! Burn!", 128, Rarity.RARE, mage.cards.k.KillMaimBurn.class)); + cards.add(new SetCardInfo("Knight Paladin", 160, Rarity.RARE, mage.cards.k.KnightPaladin.class)); cards.add(new SetCardInfo("Launch the Fleet", 188, Rarity.RARE, mage.cards.l.LaunchTheFleet.class)); cards.add(new SetCardInfo("Let the Galaxy Burn", 81, Rarity.RARE, mage.cards.l.LetTheGalaxyBurn.class)); cards.add(new SetCardInfo("Lictor", 94, Rarity.RARE, mage.cards.l.Lictor.class));