@Override public LegendarySpellAbility copy() { return new LegendarySpellAbility(this); } }
public UrzasRuinousBlast(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{W}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Exile all nonland permanents that aren't legendary. this.getSpellAbility().addEffect(new ExileAllEffect(filter)); }
public KamahlsDruidicVow(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{G}{G}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Look at the top X cards of your library. // You may put any number of land and/or legendary permanent cards with converted mana cost X or less from among them onto the battlefield. // Put the rest into your graveyard. this.getSpellAbility().addEffect(new KamahlsDruidicVowEffect()); }
public PrimevalsGloriousRebirth(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{W}{B}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Return all legendary permanent cards from your graveyard to the battlefield. this.getSpellAbility().addEffect(new PrimevalsGloriousRebirthEffect()); }
public JayasImmolatingInferno(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}{R}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Jaya's Immolating Inferno deals X damage to each of up to three targets. Effect effect = new DamageTargetEffect(ManacostVariableValue.instance); effect.setText("{this} deals X damage to each of up to three targets"); this.getSpellAbility().addEffect(effect); this.getSpellAbility().addTarget(new TargetAnyTarget(1, 3)); }
public KarnsTemporalSundering(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}{U}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Target player takes an extra turn after this one. Return up to one target nonland permanent to its owner's hand. Exile Karn's Temporal Sundering. this.getSpellAbility().addEffect(new KarnsTemporalSunderingEffect()); this.getSpellAbility().addTarget(new TargetPlayer()); this.getSpellAbility().addTarget(new TargetNonlandPermanent(0, 1, false)); this.getSpellAbility().addEffect(ExileSpellEffect.getInstance()); }
public YawgmothsVileOffering(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}"); this.addSuperType(SuperType.LEGENDARY); // (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.) this.addAbility(new LegendarySpellAbility()); // Put up to one target creature or planeswalker from a graveyard onto the battlefield under your control. // Destroy up to one target creature or planeswalker. Exile Yawgmoth's Vile Offering. this.getSpellAbility().addEffect(new YawgmothsVileOfferingEffect()); this.getSpellAbility().addTarget(new TargetCardInGraveyard(0, 1, cardFilter)); this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker(0, 1, new FilterCreatureOrPlaneswalkerPermanent(), false)); this.getSpellAbility().addEffect(ExileSpellEffect.getInstance()); }