From 00af41c1234c033c0cfd71092248c7802b9b612c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 17 Sep 2022 10:57:37 -0400 Subject: [PATCH] [40K] Implemented Ultramarines Honour Guard --- .../mage/cards/u/UltramarinesHonourGuard.java | 45 +++++++++++++++++++ Mage.Sets/src/mage/sets/Warhammer40000.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UltramarinesHonourGuard.java diff --git a/Mage.Sets/src/mage/cards/u/UltramarinesHonourGuard.java b/Mage.Sets/src/mage/cards/u/UltramarinesHonourGuard.java new file mode 100644 index 0000000000..c701803fa1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UltramarinesHonourGuard.java @@ -0,0 +1,45 @@ +package mage.cards.u; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.keyword.SquadAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class UltramarinesHonourGuard extends CardImpl { + + public UltramarinesHonourGuard(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.ASTARTES); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Squad {2} + this.addAbility(new SquadAbility()); + + // Other creatures you control get +1/+1. + this.addAbility(new SimpleStaticAbility(new BoostControlledEffect( + 1, 1, Duration.WhileOnBattlefield, true + ))); + } + + private UltramarinesHonourGuard(final UltramarinesHonourGuard card) { + super(card); + } + + @Override + public UltramarinesHonourGuard copy() { + return new UltramarinesHonourGuard(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index b1f4fc2b03..fc51e02003 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -189,6 +189,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Tyranid Invasion", 102, Rarity.UNCOMMON, mage.cards.t.TyranidInvasion.class)); cards.add(new SetCardInfo("Tyranid Prime", 145, Rarity.RARE, mage.cards.t.TyranidPrime.class)); cards.add(new SetCardInfo("Tyrant Guard", 103, Rarity.RARE, mage.cards.t.TyrantGuard.class)); + cards.add(new SetCardInfo("Ultramarines Honour Guard", 18, Rarity.RARE, mage.cards.u.UltramarinesHonourGuard.class)); cards.add(new SetCardInfo("Unclaimed Territory", 304, Rarity.UNCOMMON, mage.cards.u.UnclaimedTerritory.class)); cards.add(new SetCardInfo("Unstable Obelisk", 260, Rarity.COMMON, mage.cards.u.UnstableObelisk.class)); cards.add(new SetCardInfo("Utter End", 226, Rarity.RARE, mage.cards.u.UtterEnd.class));