mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[DMC] Implement Jedit Ojanen, Mercenary (#9497)
This commit is contained in:
parent
c0aeb44e5b
commit
6c60b342a0
3 changed files with 55 additions and 2 deletions
52
Mage.Sets/src/mage/cards/j/JeditOjanenMercenary.java
Normal file
52
Mage.Sets/src/mage/cards/j/JeditOjanenMercenary.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.j;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.permanent.token.CatWarriorToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author PurpleCrowbar
|
||||
*/
|
||||
public final class JeditOjanenMercenary extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
||||
|
||||
static {
|
||||
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||
}
|
||||
|
||||
public JeditOjanenMercenary(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}");
|
||||
addSuperType(SuperType.LEGENDARY);
|
||||
this.addSubType(SubType.CAT);
|
||||
this.addSubType(SubType.MERCENARY);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Jedit Ojanen, Mercenary or another legendary creature enters the battlefield under your control, you may pay {G}.
|
||||
// If you do, create a 2/2 green Cat Warrior creature token with forestwalk.
|
||||
this.addAbility(new EntersBattlefieldThisOrAnotherTriggeredAbility(new DoIfCostPaid(
|
||||
new CreateTokenEffect(new CatWarriorToken()), new ManaCostsImpl<>("{G}")
|
||||
), filter, false, true));
|
||||
}
|
||||
|
||||
private JeditOjanenMercenary(final JeditOjanenMercenary card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JeditOjanenMercenary copy() {
|
||||
return new JeditOjanenMercenary(this);
|
||||
}
|
||||
}
|
|
@ -97,6 +97,8 @@ public final class DominariaUnitedCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Illuna, Apex of Wishes", 154, Rarity.MYTHIC, mage.cards.i.IllunaApexOfWishes.class));
|
||||
cards.add(new SetCardInfo("Iridian Maelstrom", 12, Rarity.RARE, mage.cards.i.IridianMaelstrom.class));
|
||||
cards.add(new SetCardInfo("Jazal Goldmane", 102, Rarity.MYTHIC, mage.cards.j.JazalGoldmane.class));
|
||||
cards.add(new SetCardInfo("Jedit Ojanen, Mercenary", 34, Rarity.MYTHIC, mage.cards.j.JeditOjanenMercenary.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jedit Ojanen, Mercenary", 56, Rarity.MYTHIC, mage.cards.j.JeditOjanenMercenary.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Josu Vess, Lich Knight", 113, Rarity.RARE, mage.cards.j.JosuVessLichKnight.class));
|
||||
cards.add(new SetCardInfo("Jungle Shrine", 215, Rarity.UNCOMMON, mage.cards.j.JungleShrine.class));
|
||||
cards.add(new SetCardInfo("Kari Zev, Skyship Raider", 123, Rarity.RARE, mage.cards.k.KariZevSkyshipRaider.class));
|
||||
|
|
|
@ -19,13 +19,12 @@ public final class CatWarriorToken extends TokenImpl {
|
|||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("PLC", "C17", "C18"));
|
||||
tokenImageSets.addAll(Arrays.asList("C17", "C18"));
|
||||
}
|
||||
|
||||
public CatWarriorToken() {
|
||||
super("Cat Warrior Token", "2/2 green Cat Warrior creature token with forestwalk");
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
this.setOriginalExpansionSetCode("PLC");
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
this.color.setGreen(true);
|
||||
|
|
Loading…
Reference in a new issue