mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
[LTR] Implement Spiteful Banditry
This commit is contained in:
parent
075456607d
commit
dd99ccce83
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/s/SpitefulBanditry.java
Normal file
45
Mage.Sets/src/mage/cards/s/SpitefulBanditry.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue