forked from External/mage
[OTJ] Implement Magda, the Hoardmaster
This commit is contained in:
parent
ae081ee5af
commit
94a714b1b7
3 changed files with 91 additions and 0 deletions
56
Mage.Sets/src/mage/cards/m/MagdaTheHoardmaster.java
Normal file
56
Mage.Sets/src/mage/cards/m/MagdaTheHoardmaster.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
|
||||
import mage.abilities.common.CommittedCrimeTriggeredAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.ScorpionDragonToken;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class MagdaTheHoardmaster extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.TREASURE, "Treasures");
|
||||
|
||||
public MagdaTheHoardmaster(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.DWARF);
|
||||
this.subtype.add(SubType.BERSERKER);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever you commit a crime, create a tapped Treasure token. This ability triggers only once each turn.
|
||||
this.addAbility(
|
||||
new CommittedCrimeTriggeredAbility(new CreateTokenEffect(new TreasureToken(), 1, true))
|
||||
.setTriggersOnceEachTurn(true)
|
||||
);
|
||||
|
||||
// Sacrifice three Treasures: Create a 4/4 red Scorpion Dragon creature token with flying and haste. Activate only as a sorcery.
|
||||
this.addAbility(new ActivateAsSorceryActivatedAbility(
|
||||
new CreateTokenEffect(new ScorpionDragonToken()),
|
||||
new SacrificeTargetCost(3, filter)
|
||||
));
|
||||
}
|
||||
|
||||
private MagdaTheHoardmaster(final MagdaTheHoardmaster card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MagdaTheHoardmaster copy() {
|
||||
return new MagdaTheHoardmaster(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -84,6 +84,7 @@ public final class OutlawsOfThunderJunction extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Loan Shark", 55, Rarity.COMMON, mage.cards.l.LoanShark.class));
|
||||
cards.add(new SetCardInfo("Lonely Arroyo", 260, Rarity.COMMON, mage.cards.l.LonelyArroyo.class));
|
||||
cards.add(new SetCardInfo("Lush Oasis", 261, Rarity.COMMON, mage.cards.l.LushOasis.class));
|
||||
cards.add(new SetCardInfo("Magda, the Hoardmaster", 133, Rarity.RARE, mage.cards.m.MagdaTheHoardmaster.class));
|
||||
cards.add(new SetCardInfo("Malcolm, the Eyes", 219, Rarity.RARE, mage.cards.m.MalcolmTheEyes.class));
|
||||
cards.add(new SetCardInfo("Map the Frontier", 170, Rarity.UNCOMMON, mage.cards.m.MapTheFrontier.class));
|
||||
cards.add(new SetCardInfo("Marauding Sphinx", 56, Rarity.UNCOMMON, mage.cards.m.MaraudingSphinx.class));
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class ScorpionDragonToken extends TokenImpl {
|
||||
|
||||
public ScorpionDragonToken() {
|
||||
super("Scorpion Dragon Token", "4/4 red Scorpion Dragon creature token with flying and haste");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.SCORPION);
|
||||
subtype.add(SubType.DRAGON);
|
||||
power = new MageInt(4);
|
||||
toughness = new MageInt(4);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
}
|
||||
|
||||
private ScorpionDragonToken(final ScorpionDragonToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScorpionDragonToken copy() {
|
||||
return new ScorpionDragonToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue