Tabnine Logo
SurveilEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
SurveilEffect
in
mage.abilities.effects.keyword

Best Java code snippets using mage.abilities.effects.keyword.SurveilEffect (Showing top 20 results out of 315)

origin: magefree/mage

@Override
public SurveilEffect copy() {
  return new SurveilEffect(this);
}
origin: magefree/mage

public SurveilEffect(int scryNumber) {
  super(Outcome.Benefit);
  this.surveilNumber = scryNumber;
  this.setText();
}
origin: magefree/mage

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));
}
origin: magefree/mage

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());
}
origin: magefree/mage

public DimirInformant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  // When Dimir Informant enters the battlefield, surveil 2.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SurveilEffect(2), false));
}
origin: magefree/mage

public CitywatchSphinx(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{U}");
  this.subtype.add(SubType.SPHINX);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Citywatch Sphinx dies, surveil 2.
  this.addAbility(new DiesTriggeredAbility(new SurveilEffect(2)));
}
origin: magefree/mage

public WatcherInTheMist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(4);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Watcher in the Mist enters the battlefield, surveil 2.
  this.addAbility(new EntersBattlefieldTriggeredAbility(
      new SurveilEffect(2), false
  ));
}
origin: magefree/mage

public NightveilSprite(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
  this.subtype.add(SubType.FAERIE);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Whenever Nightveil Faerie attacks, surveil 1.
  this.addAbility(new AttacksTriggeredAbility(new SurveilEffect(1), false));
}
origin: magefree/mage

public WhisperAgent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U/B}{U/B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // When Whisper Agent enters the battlefield, surveil 1.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SurveilEffect(1), false));
}
origin: magefree/mage

public BarrierOfBones(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
  this.subtype.add(SubType.SKELETON);
  this.subtype.add(SubType.WALL);
  this.power = new MageInt(0);
  this.toughness = new MageInt(3);
  // Defender
  this.addAbility(DefenderAbility.getInstance());
  // When Barrier of Bones enters the battlefield, surveil 1.
  this.addAbility(new EntersBattlefieldTriggeredAbility(
      new SurveilEffect(1), false
  ));
}
origin: magefree/mage

public MephiticVapors(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
  // All creatures get -1/-1 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-1, -1, Duration.EndOfTurn));
  // Surveil 2.
  this.getSpellAbility().addEffect(new SurveilEffect(2));
}
origin: magefree/mage

public DoomWhisperer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{B}");
  this.subtype.add(SubType.NIGHTMARE);
  this.subtype.add(SubType.DEMON);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Trample
  this.addAbility(TrampleAbility.getInstance());
  // Pay 2 life: Surveil 2.
  this.addAbility(new SimpleActivatedAbility(
      new SurveilEffect(2), new PayLifeCost(2)
  ));
}
origin: magefree/mage

public DreamEater(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}{U}");
  this.subtype.add(SubType.NIGHTMARE);
  this.subtype.add(SubType.SPHINX);
  this.power = new MageInt(4);
  this.toughness = new MageInt(3);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Dream Eater enters the battlefield, surveil 4. When you do, you may return target nonland permanent an opponent controls to its owner's hand.
  Ability ability = new EntersBattlefieldTriggeredAbility(
      new SurveilEffect(4)
  );
  ability.addEffect(new DreamEaterCreateReflexiveTriggerEffect());
  this.addAbility(ability);
}
origin: magefree/mage

public ThoughtErasure(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{U}{B}");
  // Target opponent reveals their hand. You choose a nonland card from it. That player discards that card.
  this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect(
      filter, TargetController.ANY
  ));
  this.getSpellAbility().addTarget(new TargetOpponent());
  // Surveil 1.
  this.getSpellAbility().addEffect(new SurveilEffect(1));
}
origin: magefree/mage

public UnexplainedDisappearance(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
  // Return target creature to its owner's hand.
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Surveil 1.
  this.getSpellAbility().addEffect(new SurveilEffect(1));
}
origin: magefree/mage

public DeadlyVisit(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{B}");
  // Destroy target creature.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Surveil 2.
  this.getSpellAbility().addEffect(new SurveilEffect(2));
}
origin: magefree/mage

public DazzlingLights(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
  // Target creature gets -3/-0 until end of turn.
  this.getSpellAbility().addEffect(new BoostTargetEffect(-3, 0, Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Surveil 2.
  this.getSpellAbility().addEffect(new SurveilEffect(2));
}
origin: magefree/mage

public SinisterSabotage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}{U}");
  // Counter target spell.
  this.getSpellAbility().addEffect(new CounterTargetEffect());
  this.getSpellAbility().addTarget(new TargetSpell());
  // Surveil 1.
  this.getSpellAbility().addEffect(new SurveilEffect(1));
}
origin: magefree/mage

public LazavTheMultifarious(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{B}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.SHAPESHIFTER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // When Lazav, the Multifarious enters the battlefield, surveil 1.
  this.addAbility(new EntersBattlefieldTriggeredAbility(
      new SurveilEffect(1), false
  ));
  // {X}: Lazav, the Multifarious becomes a copy of target creature card in your graveyard with converted mana cost X, except its name is Lazav, the Multifarious, it's legendary in addition to its other types, and it has this ability.
  Ability ability = new SimpleActivatedAbility(
      new LazavTheMultifariousEffect(),
      new ManaCostsImpl("{X}")
  );
  ability.setTargetAdjuster(LazavTheMultifariousAdjuster.instance);
  this.addAbility(ability);
}
origin: magefree/mage

public PriceOfFame(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B}");
  // This spell costs {2} less to cast if it targets a legendary creature.
  this.addAbility(new SimpleStaticAbility(
      Zone.STACK, new SpellCostReductionSourceEffect(2, condition)
  ).setRuleAtTheTop(true));
  // Destroy target creature.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Surveil 2.
  this.getSpellAbility().addEffect(new SurveilEffect(2));
}
mage.abilities.effects.keywordSurveilEffect

Most used methods

  • <init>
  • setText

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now