diff --git a/Mage.Sets/src/mage/cards/s/SpitefulBanditry.java b/Mage.Sets/src/mage/cards/s/SpitefulBanditry.java new file mode 100644 index 0000000000..90834b4c02 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SpitefulBanditry.java @@ -0,0 +1,45 @@ +package mage.cards.s; + +import mage.abilities.common.DiesCreatureTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.ManacostVariableValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DamageAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SpitefulBanditry extends CardImpl { + + public SpitefulBanditry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{X}{R}{R}"); + + // When Spiteful Banditry enters the battlefield, it deals X damage to each creature. + this.addAbility(new EntersBattlefieldTriggeredAbility(new DamageAllEffect( + ManacostVariableValue.ETB, StaticFilters.FILTER_PERMANENT_CREATURE + ))); + + // Whenever one or more creatures your opponents control die, you create a Treasure token. This ability triggers only once each turn. + this.addAbility(new DiesCreatureTriggeredAbility( + new CreateTokenEffect(new TreasureToken()) + .setText("you create a Treasure token"), + false, StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURE + ).setTriggerPhrase("Whenever one or more creatures your opponents control die, ").setTriggersOnce(true)); + } + + private SpitefulBanditry(final SpitefulBanditry card) { + super(card); + } + + @Override + public SpitefulBanditry copy() { + return new SpitefulBanditry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index 1e9d3517f2..601ede7660 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -184,6 +184,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Snarling Warg", 109, Rarity.COMMON, mage.cards.s.SnarlingWarg.class)); cards.add(new SetCardInfo("Soldier of the Grey Host", 32, Rarity.COMMON, mage.cards.s.SoldierOfTheGreyHost.class)); cards.add(new SetCardInfo("Soothing of Smeagol", 70, Rarity.COMMON, mage.cards.s.SoothingOfSmeagol.class)); + cards.add(new SetCardInfo("Spiteful Banditry", 149, Rarity.MYTHIC, mage.cards.s.SpitefulBanditry.class)); cards.add(new SetCardInfo("Stalwarts of Osgiliath", 33, Rarity.COMMON, mage.cards.s.StalwartsOfOsgiliath.class)); cards.add(new SetCardInfo("Stern Scolding", 71, Rarity.UNCOMMON, mage.cards.s.SternScolding.class)); cards.add(new SetCardInfo("Stew the Coneys", 189, Rarity.UNCOMMON, mage.cards.s.StewTheConeys.class));