diff --git a/Mage.Sets/src/mage/cards/s/StaffOfTitania.java b/Mage.Sets/src/mage/cards/s/StaffOfTitania.java new file mode 100644 index 0000000000..fbaef5c65b --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StaffOfTitania.java @@ -0,0 +1,54 @@ +package mage.cards.s; + +import mage.abilities.common.AttacksAttachedTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.hint.Hint; +import mage.abilities.hint.ValueHint; +import mage.abilities.keyword.EquipAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterControlledPermanent; +import mage.game.permanent.token.ForestDryadToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class StaffOfTitania extends CardImpl { + + private static final DynamicValue xValue = new PermanentsOnBattlefieldCount( + new FilterControlledPermanent(SubType.FOREST, "Forests you control"), null + ); + private static final Hint hint = new ValueHint("Forests you control", xValue); + + public StaffOfTitania(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +X/+X, where X is the number of Forests you control. + this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(xValue, xValue))); + + // Whenever equipped creature attacks, create a 1/1 green Forest Dryad land creature token. + this.addAbility(new AttacksAttachedTriggeredAbility(new CreateTokenEffect(new ForestDryadToken()))); + + // Equip {3} + this.addAbility(new EquipAbility(3)); + } + + private StaffOfTitania(final StaffOfTitania card) { + super(card); + } + + @Override + public StaffOfTitania copy() { + return new StaffOfTitania(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java index 9950d935e8..12f1c2e837 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java @@ -140,6 +140,7 @@ public final class TheBrothersWarCommander extends ExpansionSet { cards.add(new SetCardInfo("Sphinx's Revelation", 130, Rarity.MYTHIC, mage.cards.s.SphinxsRevelation.class)); cards.add(new SetCardInfo("Spine of Ish Sah", 162, Rarity.RARE, mage.cards.s.SpineOfIshSah.class)); cards.add(new SetCardInfo("Spire of Industry", 203, Rarity.RARE, mage.cards.s.SpireOfIndustry.class)); + cards.add(new SetCardInfo("Staff of Titania", 27, Rarity.RARE, mage.cards.s.StaffOfTitania.class)); cards.add(new SetCardInfo("Steel Hellkite", 163, Rarity.RARE, mage.cards.s.SteelHellkite.class)); cards.add(new SetCardInfo("Steel Overseer", 164, Rarity.RARE, mage.cards.s.SteelOverseer.class)); cards.add(new SetCardInfo("Strionic Resonator", 165, Rarity.RARE, mage.cards.s.StrionicResonator.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 91782ffa9e..cd578c96aa 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -46519,7 +46519,7 @@ Sardian Avenger|The Brothers' War Commander|23|R|{1}{R}|Creature - Goblin Warrio Rootpath Purifier|The Brothers' War Commander|24|M|{3}{G}|Creature - Elf Druid|3|4|Lands you control and land cards in your library are basic.| Titania, Nature's Force|The Brothers' War Commander|25|M|{4}{G}{G}|Legendary Creature - Elemental|6|6|You may play Forests from your graveyard.$Whenever a Forest enters the battlefield under your control, create a 5/3 green Elemental creature token.$Whenever an Elemental you control dies, you may mill three cards.| The Archimandrite|The Brothers' War Commander|26|R|{2}{U}{R}{W}|Legendary Creature - Human Advisor|0|5|At the beginning of your upkeep, you gain X life, where X is the number of cards in your hand minus 4.$Whenever you gain life, each Advisor, Artificer, and Monk you control gains vigilance and gets +X/+0 until end of turn, where X is the amount of life you gained.$Tap three untapped Advisors, Artificers, and/or Monks you control: Draw a card.| -Staff of Titania|The Brothers' War Commander|27|R|{2}|Artifact - Equipment|||Equipped creature gets +X/+X, where X is the number of Forests you control. Whenever equipped creature attacks, create a 1/1 green Forest Dryad land creature token.$Equip {3}| +Staff of Titania|The Brothers' War Commander|27|R|{2}|Artifact - Equipment|||Equipped creature gets +X/+X, where X is the number of Forests you control.$Whenever equipped creature attacks, create a 1/1 green Forest Dryad land creature token.$Equip {3}| Urza's Workshop|The Brothers' War Commander|28|R||Land - Urza's|||{T}: Add {C}.$Metalcraft -- {T}: Add {C} for each Urza's land you control. Activate only if you control three or more artifacts.| Plains|The Brothers' War Commander|29|C||Basic Land - Plains|||({T}: Add {W}.)| Island|The Brothers' War Commander|31|C||Basic Land - Island|||({T}: Add {U}.)|