mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
[TDM] Implement Mox Jasper
This commit is contained in:
parent
fdc3795571
commit
e69b80df91
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/m/MoxJasper.java
Normal file
50
Mage.Sets/src/mage/cards/m/MoxJasper.java
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
package mage.cards.m;
|
||||||
|
|
||||||
|
import mage.abilities.condition.Condition;
|
||||||
|
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||||
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
|
import mage.abilities.effects.mana.AddManaOfAnyColorEffect;
|
||||||
|
import mage.abilities.hint.ConditionHint;
|
||||||
|
import mage.abilities.hint.Hint;
|
||||||
|
import mage.abilities.mana.ActivateIfConditionManaAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class MoxJasper extends CardImpl {
|
||||||
|
|
||||||
|
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(
|
||||||
|
new FilterControlledPermanent(SubType.DRAGON, "you control a Dragon")
|
||||||
|
);
|
||||||
|
private static final Hint hint = new ConditionHint(condition, "You control a Dragon");
|
||||||
|
|
||||||
|
public MoxJasper(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{0}");
|
||||||
|
|
||||||
|
this.supertype.add(SuperType.LEGENDARY);
|
||||||
|
|
||||||
|
// {T}: Add one mana of any color. Activate only if you control a Dragon.
|
||||||
|
this.addAbility(new ActivateIfConditionManaAbility(
|
||||||
|
Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(1),
|
||||||
|
new TapSourceCost(), condition
|
||||||
|
).addHint(hint));
|
||||||
|
}
|
||||||
|
|
||||||
|
private MoxJasper(final MoxJasper card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MoxJasper copy() {
|
||||||
|
return new MoxJasper(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -19,6 +19,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
|
||||||
super("Tarkir: Dragonstorm", "TDM", ExpansionSet.buildDate(2025, 4, 11), SetType.EXPANSION);
|
super("Tarkir: Dragonstorm", "TDM", ExpansionSet.buildDate(2025, 4, 11), SetType.EXPANSION);
|
||||||
this.blockName = "Tarkir: Dragonstorm"; // for sorting in GUI
|
this.blockName = "Tarkir: Dragonstorm"; // for sorting in GUI
|
||||||
|
|
||||||
|
cards.add(new SetCardInfo("Mox Jasper", 246, Rarity.MYTHIC, mage.cards.m.MoxJasper.class));
|
||||||
cards.add(new SetCardInfo("Stormscale Scion", 123, Rarity.MYTHIC, mage.cards.s.StormscaleScion.class));
|
cards.add(new SetCardInfo("Stormscale Scion", 123, Rarity.MYTHIC, mage.cards.s.StormscaleScion.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue