mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
[SNC] Implemented Widespread Thieving
This commit is contained in:
parent
33a3aab75f
commit
15943485e6
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/w/WidespreadThieving.java
Normal file
54
Mage.Sets/src/mage/cards/w/WidespreadThieving.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.HideawayPlayEffect;
|
||||
import mage.abilities.keyword.HideawayAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.mageobject.MulticoloredPredicate;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WidespreadThieving extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a multicolored spell");
|
||||
|
||||
static {
|
||||
filter.add(MulticoloredPredicate.instance);
|
||||
}
|
||||
|
||||
public WidespreadThieving(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
|
||||
|
||||
// Hideaway 5
|
||||
this.addAbility(new HideawayAbility(5));
|
||||
|
||||
// Whenever you cast a multicolored spell, create a Treasure token. Then you may pay {W}{U}{B}{R}{G}. If you do, you may play the exiled card without paying its mana cost.
|
||||
Ability ability = new SpellCastControllerTriggeredAbility(
|
||||
new CreateTokenEffect(new TreasureToken()), filter, false
|
||||
);
|
||||
ability.addEffect(new DoIfCostPaid(
|
||||
new HideawayPlayEffect(), new ManaCostsImpl<>("{W}{U}{B}{R}{G}")
|
||||
).concatBy("Then"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private WidespreadThieving(final WidespreadThieving card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WidespreadThieving copy() {
|
||||
return new WidespreadThieving(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -251,6 +251,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Warm Welcome", 164, Rarity.COMMON, mage.cards.w.WarmWelcome.class));
|
||||
cards.add(new SetCardInfo("Waterfront District", 259, Rarity.COMMON, mage.cards.w.WaterfrontDistrict.class));
|
||||
cards.add(new SetCardInfo("Whack", 99, Rarity.UNCOMMON, mage.cards.w.Whack.class));
|
||||
cards.add(new SetCardInfo("Widespread Thieving", 130, Rarity.RARE, mage.cards.w.WidespreadThieving.class));
|
||||
cards.add(new SetCardInfo("Wingshield Agent", 64, Rarity.UNCOMMON, mage.cards.w.WingshieldAgent.class));
|
||||
cards.add(new SetCardInfo("Witness Protection", 66, Rarity.COMMON, mage.cards.w.WitnessProtection.class));
|
||||
cards.add(new SetCardInfo("Witty Roastmaster", 131, Rarity.COMMON, mage.cards.w.WittyRoastmaster.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue