[J25] Implement Cynette, Jelly Drover

This commit is contained in:
theelk801 2024-10-30 16:05:03 -04:00
parent 23842c75c1
commit 0e4730ca20
3 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldOrDiesSourceTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostAllEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.AbilityPredicate;
import mage.game.permanent.token.JellyfishToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CynetteJellyDrover extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures you control with flying");
static {
filter.add(TargetController.YOU.getControllerPredicate());
filter.add(new AbilityPredicate(FlyingAbility.class));
}
public CynetteJellyDrover(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.WIZARD);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// When Cynette, Jelly Drover enters or dies, create a 1/1 blue Jellyfish creature token with flying.
this.addAbility(new EntersBattlefieldOrDiesSourceTriggeredAbility(
new CreateTokenEffect(new JellyfishToken()), false
));
// Creatures you control with flying get +1/+1.
this.addAbility(new SimpleStaticAbility(new BoostAllEffect(
1, 1, Duration.WhileOnBattlefield, filter, false
)));
}
private CynetteJellyDrover(final CynetteJellyDrover card) {
super(card);
}
@Override
public CynetteJellyDrover copy() {
return new CynetteJellyDrover(this);
}
}

View file

@ -166,6 +166,7 @@ public final class FoundationsJumpstart extends ExpansionSet {
cards.add(new SetCardInfo("Cruel Witness", 302, Rarity.COMMON, mage.cards.c.CruelWitness.class));
cards.add(new SetCardInfo("Crystacean", 303, Rarity.COMMON, mage.cards.c.Crystacean.class));
cards.add(new SetCardInfo("Cyclops Electromancer", 534, Rarity.COMMON, mage.cards.c.CyclopsElectromancer.class));
cards.add(new SetCardInfo("Cynette, Jelly Drover", 35, Rarity.UNCOMMON, mage.cards.c.CynetteJellyDrover.class));
cards.add(new SetCardInfo("Danitha Capashen, Paragon", 59, Rarity.UNCOMMON, mage.cards.d.DanithaCapashenParagon.class));
cards.add(new SetCardInfo("Dark Bargain", 113, Rarity.COMMON, mage.cards.d.DarkBargain.class));
cards.add(new SetCardInfo("Dark Confidant", 114, Rarity.MYTHIC, mage.cards.d.DarkConfidant.class));

View file

@ -0,0 +1,30 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class JellyfishToken extends TokenImpl {
public JellyfishToken() {
super("Jellyfish Token", "1/1 blue Jellyfish creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add(SubType.JELLYFISH);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
}
private JellyfishToken(final JellyfishToken token) {
super(token);
}
public JellyfishToken copy() {
return new JellyfishToken(this);
}
}