@Override public AscendEffect copy() { return new AscendEffect(this); }
public ExpelFromOrazca(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); // Ascend this.getSpellAbility().addEffect(new AscendEffect()); // Return target nonland permanent to its owner's hand. If you have the city's blessing, you may put that permanent on top of its owner's library instead. this.getSpellAbility().addEffect(new ExpelFromOrazcaEffect()); this.getSpellAbility().addTarget(new TargetNonlandPermanent()); }
public PrideOfConquerors(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); // Ascend (If you control ten or more permanents, you get the city's blessing for the rest of the game.) this.getSpellAbility().addEffect(new AscendEffect()); // Creatures you control get +1/+1 until end of turn. If you have the city's blessing, those creatures get +2/+2 until end of turn instead. this.getSpellAbility().addEffect(new ConditionalContinuousEffect(new BoostControlledEffect(2, 2, Duration.EndOfTurn), new BoostControlledEffect(1, 1, Duration.EndOfTurn), CitysBlessingCondition.instance, "Creatures you control get +1/+1 until end of turn. If you have the city's blessing, those creatures get +2/+2 until end of turn instead")); }
public SecretsOfTheGoldenCity(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}{U}"); // Ascend this.getSpellAbility().addEffect(new AscendEffect()); // Draw two cards. If you have the city's blessing, draw three cards instead. this.getSpellAbility().addEffect(new ConditionalOneShotEffect( new DrawCardSourceControllerEffect(3), new DrawCardSourceControllerEffect(2), CitysBlessingCondition.instance, "Draw two cards. If you have the city's blessing, draw three cards instead")); }
public GoldenDemise(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}{B}"); // Ascend this.getSpellAbility().addEffect(new AscendEffect()); // All creatures get -2/-2 until end of turn. If you have the city's blessing, instead only creatures your opponents control get -2/-2 until end of turn. FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures your opponents control"); filter.add(new ControllerPredicate(TargetController.OPPONENT)); this.getSpellAbility().addEffect(new ConditionalContinuousEffect( new BoostAllEffect(-2, -2, Duration.EndOfTurn, filter, false), new BoostAllEffect(-2, -2, Duration.EndOfTurn), CitysBlessingCondition.instance, "All creatures get -2/-2 until end of turn. If you have the city's blessing, instead only creatures your opponents control get -2/-2 until end of turn" )); }
public VonasHunger(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{B}"); // Ascend (If you control ten or more permanents, you get the city's blessing for the rest of the game.) this.getSpellAbility().addEffect(new AscendEffect()); // Each opponent sacrifices a creature. this.getSpellAbility().addEffect(new ConditionalOneShotEffect( new SacrificeOpponentsEffect(StaticFilters.FILTER_PERMANENT_A_CREATURE), new InvertCondition(CitysBlessingCondition.instance), "Each opponent sacrifices a creature")); // If you have the city's blessing, instead each opponent sacrifices half the creatures he or she controls rounded up. this.getSpellAbility().addEffect(new ConditionalOneShotEffect( new VonasHungerEffect(), CitysBlessingCondition.instance, "If you have the city's blessing, instead each opponent sacrifices half the creatures he or she controls rounded up")); }