public SurveilEffect(int scryNumber) { super(Outcome.Benefit); this.surveilNumber = scryNumber; this.setText(); }
public NotionRain(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}{B}"); // Surveil 2, then draw two cards. Rain of Notions deals 2 damage to you. this.getSpellAbility().addEffect( new SurveilEffect(2).setText("Surveil 2") ); this.getSpellAbility().addEffect( new DrawCardSourceControllerEffect(2) .setText(", then draw two cards") ); this.getSpellAbility().addEffect(new DamageControllerEffect(2)); }
public DiscoveryDispersal(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, new CardType[]{CardType.INSTANT}, "{1}{U/B}", "{3}{U}{B}", SpellAbilityType.SPLIT); // Discovery // Surveil 2, then draw a card. this.getLeftHalfCard().getSpellAbility().addEffect( new SurveilEffect(2).setText("Surveil 2,") ); this.getLeftHalfCard().getSpellAbility().addEffect( new DrawCardSourceControllerEffect(1 ).setText("then draw a card. <i>(To surveil 2, " + "look at the top two cards of your library, " + "then put any number of them into your graveyard " + "and the rest on top of your library " + "in any order.)</i>") ); // Dispersal // Each opponent returns a nonland permanent they control with the highest converted mana cost among permanents they control to its owner’s hand, then discards a card. this.getRightHalfCard().getSpellAbility().addEffect(new DispersalEffect()); }