[LTR] Implement Spiteful Banditry

This commit is contained in:
theelk801 2023-06-10 17:57:28 -04:00
parent 075456607d
commit dd99ccce83
2 changed files with 46 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));