forked from External/mage
[WOE] Implement Charming Scoundrel (#10935)
This commit is contained in:
parent
9b10ea40b6
commit
9ea5451e31
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/c/CharmingScoundrel.java
Normal file
62
Mage.Sets/src/mage/cards/c/CharmingScoundrel.java
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateRoleAttachedTargetEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardControllerEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.RoleType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class CharmingScoundrel extends CardImpl {
|
||||
|
||||
public CharmingScoundrel(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// When Charming Scoundrel enters the battlefield, choose one —
|
||||
// * Discard a card, then draw a card.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardControllerEffect(1));
|
||||
ability.addEffect(new DrawCardSourceControllerEffect(1).concatBy(", then"));
|
||||
|
||||
// * Create a Treasure token.
|
||||
ability.addMode(new Mode(new CreateTokenEffect(new TreasureToken())));
|
||||
|
||||
// * Create a Wicked Role token attached to target creature you control.
|
||||
Mode mode = new Mode(new CreateRoleAttachedTargetEffect(RoleType.WICKED));
|
||||
mode.addTarget(new TargetControlledCreaturePermanent());
|
||||
ability.addMode(mode);
|
||||
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CharmingScoundrel(final CharmingScoundrel card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharmingScoundrel copy() {
|
||||
return new CharmingScoundrel(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -42,6 +42,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Callous Sell-Sword", 221, Rarity.UNCOMMON, mage.cards.c.CallousSellSword.class));
|
||||
cards.add(new SetCardInfo("Chancellor of Tales", 45, Rarity.UNCOMMON, mage.cards.c.ChancellorOfTales.class));
|
||||
cards.add(new SetCardInfo("Charmed Clothier", 6, Rarity.COMMON, mage.cards.c.CharmedClothier.class));
|
||||
cards.add(new SetCardInfo("Charming Scoundrel", 124, Rarity.RARE, mage.cards.c.CharmingScoundrel.class));
|
||||
cards.add(new SetCardInfo("Conceited Witch", 84, Rarity.COMMON, mage.cards.c.ConceitedWitch.class));
|
||||
cards.add(new SetCardInfo("Cruel Somnophage", 222, Rarity.RARE, mage.cards.c.CruelSomnophage.class));
|
||||
cards.add(new SetCardInfo("Cursed Courtier", 9, Rarity.UNCOMMON, mage.cards.c.CursedCourtier.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue