[DMC] Implement Jasmine Boreal of the Seven (#9591)

This commit is contained in:
Grath 2022-09-29 11:03:03 -04:00 committed by GitHub
parent c9a7aedfb2
commit 349c24554d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 0 deletions

View 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 cant 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);
}
}

View file

@ -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));