From fc611225a4c2bf170abd009fea3013868fb039f2 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 6 Jul 2021 21:36:17 -0400 Subject: [PATCH] [AFR] Implemented Boots of Speed --- Mage.Sets/src/mage/cards/b/BootsOfSpeed.java | 46 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/b/BootsOfSpeed.java diff --git a/Mage.Sets/src/mage/cards/b/BootsOfSpeed.java b/Mage.Sets/src/mage/cards/b/BootsOfSpeed.java new file mode 100644 index 0000000000..47f3bff113 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BootsOfSpeed.java @@ -0,0 +1,46 @@ +package mage.cards.b; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.HasteAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AttachmentType; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BootsOfSpeed extends CardImpl { + + public BootsOfSpeed(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{R}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +1/+0 and has haste. + Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 0)); + ability.addEffect(new GainAbilityAttachedEffect( + HasteAbility.getInstance(), AttachmentType.AURA + ).setText("and has haste")); + this.addAbility(ability); + + // Equip {1} + this.addAbility(new EquipAbility(1)); + } + + private BootsOfSpeed(final BootsOfSpeed card) { + super(card); + } + + @Override + public BootsOfSpeed copy() { + return new BootsOfSpeed(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index ba6f0ccb4a..743b036e72 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -38,6 +38,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Battle Cry Goblin", 132, Rarity.UNCOMMON, mage.cards.b.BattleCryGoblin.class)); cards.add(new SetCardInfo("Black Dragon", 90, Rarity.UNCOMMON, mage.cards.b.BlackDragon.class)); cards.add(new SetCardInfo("Blink Dog", 3, Rarity.UNCOMMON, mage.cards.b.BlinkDog.class)); + cards.add(new SetCardInfo("Boots of Speed", 133, Rarity.COMMON, mage.cards.b.BootsOfSpeed.class)); cards.add(new SetCardInfo("Bruenor Battlehammer", 219, Rarity.UNCOMMON, mage.cards.b.BruenorBattlehammer.class)); cards.add(new SetCardInfo("Bulette", 173, Rarity.COMMON, mage.cards.b.Bulette.class)); cards.add(new SetCardInfo("Bull's Strength", 174, Rarity.COMMON, mage.cards.b.BullsStrength.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 8644c0ef8b..6e95bc1391 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -41452,7 +41452,7 @@ Zombie Ogre|Adventures in the Forgotten Realms|129|C|{3}{B}{B}|Creature - Zombie Armory Veteran|Adventures in the Forgotten Realms|130|C|{1}{R}|Creature - Orc Warrior|2|2|As long as Armory Veteran is equipped, it has menace.| Barbarian Class|Adventures in the Forgotten Realms|131|U|{R}|Enchantment - Class|||(Gain the next level as a sorcery to add its ability.)$If you would roll one or more dice, instead roll that many dice plus one and ignore the lowest roll.${1}{R}: Level 2$Whenever you roll one or more dice, target creature you control gets +2/+0 and gains menace until end of turn.${2}{R}: Level 3$Creatures you control have haste.| Battle Cry Goblin|Adventures in the Forgotten Realms|132|U|{1}{R}|Creature - Goblin|2|2|{1}{R}: Goblins you control get +1/+0 and gain haste until end of turn.$Pack tactics — Whenever Battle Cry Goblin attacks, if you attacked with creatures with total power 6 or greater this combat, create a 1/1 red Goblin creature token that's tapped and attacking.| -Boosts of Speed|Adventures in the Forgotten Realms|133|C|{R}|Artifact - Equipment|||Equipped creature gets +1/+0 and has haste.$Equip {1}| +Boots of Speed|Adventures in the Forgotten Realms|133|C|{R}|Artifact - Equipment|||Equipped creature gets +1/+0 and has haste.$Equip {1}| Brazen Dwarf|Adventures in the Forgotten Realms|134|C|{1}{R}|Creature - Dwarf Shaman|1|3|Whenever you roll one or more dice, Brazen Dwarf deals 1 damage to each opponent.| Burning Hands|Adventures in the Forgotten Realms|135|U|{1}{R}|Instant|||Burning Hands deals 2 damage to target creature or planeswalker. If that permanent is green, Burning Hands deals 6 damage instead.| Chaos Channeler|Adventures in the Forgotten Realms|136|U|{2}{R}{R}|Creature - Human Shaman|4|3|Wild Magic Surge — Whenever Chaos Channeler attacks, roll a d20.$1-9 & Exile the top card of your library. You may play it this turn.$10-19 & Exile the top two cards of your library. You may play them this turn.$20 & Exile the top three cards of your library. You may play them this turn.|