mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
[CLB] Implemented Jan Jansen, Chaos Crafter
This commit is contained in:
parent
b8b32b5dd4
commit
6b947e4b3f
2 changed files with 74 additions and 0 deletions
73
Mage.Sets/src/mage/cards/j/JanJansenChaosCrafter.java
Normal file
73
Mage.Sets/src/mage/cards/j/JanJansenChaosCrafter.java
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
package mage.cards.j;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.common.FilterControlledArtifactPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.permanent.token.ConstructToken;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class JanJansenChaosCrafter extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter
|
||||
= new FilterControlledArtifactPermanent("artifact creature");
|
||||
private static final FilterControlledPermanent filter2
|
||||
= new FilterControlledArtifactPermanent("noncreature artifact");
|
||||
|
||||
static {
|
||||
filter.add(CardType.CREATURE.getPredicate());
|
||||
filter2.add(Predicates.not(CardType.CREATURE.getPredicate()));
|
||||
}
|
||||
|
||||
public JanJansenChaosCrafter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{W}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.GNOME);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// {T}, Sacrifice an artifact creature: Create two Treasure tokens.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new CreateTokenEffect(new TreasureToken(), 2), new TapSourceCost()
|
||||
);
|
||||
ability.addCost(new SacrificeTargetCost(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
// {T}, Sacrifice a noncreature artifact: Create two 1/1 colorless Construct artifact creature tokens.
|
||||
ability = new SimpleActivatedAbility(
|
||||
new CreateTokenEffect(new ConstructToken(), 2), new TapSourceCost()
|
||||
);
|
||||
ability.addCost(new SacrificeTargetCost(filter2));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private JanJansenChaosCrafter(final JanJansenChaosCrafter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JanJansenChaosCrafter copy() {
|
||||
return new JanJansenChaosCrafter(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -85,6 +85,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Island", 455, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jaheira's Respite", 238, Rarity.RARE, mage.cards.j.JaheirasRespite.class));
|
||||
cards.add(new SetCardInfo("Jaheira, Friend of the Forest", 237, Rarity.RARE, mage.cards.j.JaheiraFriendOfTheForest.class));
|
||||
cards.add(new SetCardInfo("Jan Jansen, Chaos Crafter", 277, Rarity.RARE, mage.cards.j.JanJansenChaosCrafter.class));
|
||||
cards.add(new SetCardInfo("Karlach, Fury of Avernus", 186, Rarity.MYTHIC, mage.cards.k.KarlachFuryOfAvernus.class));
|
||||
cards.add(new SetCardInfo("Korlessa, Scale Singer", 280, Rarity.UNCOMMON, mage.cards.k.KorlessaScaleSinger.class));
|
||||
cards.add(new SetCardInfo("Lae'zel, Vlaakith's Champion", 29, Rarity.RARE, mage.cards.l.LaezelVlaakithsChampion.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue