mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[DMC] Implement Jasmine Boreal of the Seven (#9591)
This commit is contained in:
parent
c9a7aedfb2
commit
349c24554d
2 changed files with 67 additions and 0 deletions
65
Mage.Sets/src/mage/cards/j/JasmineBorealOfTheSeven.java
Normal file
65
Mage.Sets/src/mage/cards/j/JasmineBorealOfTheSeven.java
Normal file
|
@ -0,0 +1,65 @@
|
|||
package mage.cards.j;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedByCreaturesAllEffect;
|
||||
import mage.abilities.mana.ConditionalColoredManaAbility;
|
||||
import mage.abilities.mana.conditional.ConditionalSpellManaBuilder;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.NoAbilityPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public final class JasmineBorealOfTheSeven extends CardImpl {
|
||||
|
||||
private static final FilterSpell spell_filter
|
||||
= new FilterSpell("creature spells with no abilities");
|
||||
private static final FilterCreaturePermanent your_creatures_filter
|
||||
= new FilterCreaturePermanent("creatures you control with no abilities");
|
||||
private static final FilterCreaturePermanent with_abilities_filter
|
||||
= new FilterCreaturePermanent("by creatures with abilities");
|
||||
|
||||
static {
|
||||
spell_filter.add(NoAbilityPredicate.instance);
|
||||
spell_filter.add(CardType.CREATURE.getPredicate());
|
||||
your_creatures_filter.add(NoAbilityPredicate.instance);
|
||||
your_creatures_filter.add(TargetController.YOU.getControllerPredicate());
|
||||
with_abilities_filter.add(Predicates.not(NoAbilityPredicate.instance));
|
||||
}
|
||||
|
||||
public JasmineBorealOfTheSeven(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.DRUID);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// {T}: Add {G}{W}. Spend this mana only to cast creature spells with no abilities.
|
||||
this.addAbility(new ConditionalColoredManaAbility(
|
||||
new Mana(1, 0, 0, 0, 1, 0, 0, 0),
|
||||
new ConditionalSpellManaBuilder(spell_filter)
|
||||
));
|
||||
|
||||
// Creatures you control with no abilities can’t be blocked by creatures with abilities.
|
||||
this.addAbility(new SimpleStaticAbility(new CantBeBlockedByCreaturesAllEffect(
|
||||
your_creatures_filter, with_abilities_filter, Duration.WhileOnBattlefield
|
||||
)));
|
||||
}
|
||||
|
||||
private JasmineBorealOfTheSeven(final JasmineBorealOfTheSeven card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JasmineBorealOfTheSeven copy() {
|
||||
return new JasmineBorealOfTheSeven(this);
|
||||
}
|
||||
}
|
|
@ -103,6 +103,8 @@ public final class DominariaUnitedCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Jazal Goldmane", 102, Rarity.MYTHIC, mage.cards.j.JazalGoldmane.class));
|
||||
cards.add(new SetCardInfo("Jared Carthalion", 2, Rarity.MYTHIC, mage.cards.j.JaredCarthalion.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jared Carthalion", 50, Rarity.MYTHIC, mage.cards.j.JaredCarthalion.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jasmine Boreal of the Seven", 33, Rarity.UNCOMMON, mage.cards.j.JasmineBorealOfTheSeven.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jasmine Boreal of the Seven", 55, Rarity.UNCOMMON, mage.cards.j.JasmineBorealOfTheSeven.class, NON_FULL_USE_VARIOUS));
|
||||
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("Jenson Carthalion, Druid Exile", 3, Rarity.MYTHIC, mage.cards.j.JensonCarthalionDruidExile.class));
|
||||
|
|
Loading…
Reference in a new issue