Tabnine Logo
LookLibraryControllerEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.LookLibraryControllerEffect
constructor

Best Java code snippets using mage.abilities.effects.common.LookLibraryControllerEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

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

public Index(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}");
  // Look at the top five cards of your library, then put them back in any order.
  this.getSpellAbility().addEffect(new LookLibraryControllerEffect(5));
}
origin: magefree/mage

public HalimarDepths(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},null);
      // Halimar Depths enters the battlefield tapped.
      this.addAbility(new EntersBattlefieldTappedAbility());
      // When Halimar Depths enters the battlefield, look at the top three cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(3)));
  this.addAbility(new BlueManaAbility());
}
origin: magefree/mage

public SageOfEpityr(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // When Sage of Epityr enters the battlefield, look at the top four cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(4)));
}
origin: magefree/mage

public SageOwl(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.BIRD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  this.addAbility(FlyingAbility.getInstance());
  // When Sage Owl enters the battlefield, look at the top four cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(4)));
}
origin: magefree/mage

public InkfathomDivers (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Islandwalk
  this.addAbility(new IslandwalkAbility());
  // When Inkfathom Divers enters the battlefield, look at the top four cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(4)));
}
origin: magefree/mage

public SageAven(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.BIRD);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Sage Aven enters the battlefield, look at the top four cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(4)));
}
origin: magefree/mage

public GiltLeafSeer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {G}, {tap}: Look at the top two cards of your library, then put them back in any order.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(2), new ManaCostsImpl("{G}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public Omen(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{U}");
  // Look at the top three cards of your library, then put them back in any order. You may shuffle your library.
  this.getSpellAbility().addEffect(new LookLibraryControllerEffect(3, true));
  
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public Ponder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}");
  // Look at the top three cards of your library, then put them back in any order. You may shuffle your library.
  this.getSpellAbility().addEffect(new LookLibraryControllerEffect(3, true, true));
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public CrystalSeer (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{U}");
  this.subtype.add(SubType.VEDALKEN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // When Crystal Seer enters the battlefield, look at the top four cards of your library, then put them back in any order.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryControllerEffect(4)));
  // {4}{U}: Return Crystal Seer to its owner's hand.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{4}{U}")));
}
origin: magefree/mage

public SenseisDiviningTop(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(3, false, true), new ManaCostsImpl("{1}")));
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new TapSourceCost());
  ability.addEffect(new SenseisDiviningTopEffect());
  this.addAbility(ability);
}
origin: magefree/mage

public CallousDeceiver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // {1}: Look at the top card of your library.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
  // {2}: Reveal the top card of your library. If it's a land card, {this} gets +1/+0 and gains flying until end of turn. Activate this ability only once each turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new CallousDeceiverEffect(), new ManaCostsImpl("{2}")));
}
origin: magefree/mage

public BrutalDeceiver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {1}: Look at the top card of your library.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
  // {2}: Reveal the top card of your library. If it's a land card, {this} gets +1/+0 and gains first strike until end of turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new BrutalDeceiverEffect(), new ManaCostsImpl("{2}")));
}
origin: magefree/mage

public FeralDeceiver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // {1}: Look at the top card of your library.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
  // {2}: Reveal the top card of your library. If it's a land card, {this} gets +2/+2 and gains trample until end of turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new FeralDeceiverEffect(), new ManaCostsImpl("{2}")));
}
origin: magefree/mage

public CruelDeceiver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // {1}: Look at the top card of your library.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new LookLibraryControllerEffect(), new GenericManaCost(1)));
  // {2}: Reveal the top card of your library. If it's a land card, Cruel Deceiver gains "Whenever Cruel Deceiver deals damage to a creature, destroy that creature" until end of turn. Activate this ability only once each turn.
  this.addAbility(new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new CruelDeceiverEffect(), new ManaCostsImpl("{2}")));
}
origin: magefree/mage

public Discombobulate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{U}{U}");
      // Counter target spell. Look at the top four cards of your library, then put them back in any order.
  this.getSpellAbility().addTarget(new TargetSpell());
  this.getSpellAbility().addEffect(new CounterTargetEffect());
      this.getSpellAbility().addEffect(new LookLibraryControllerEffect(4));
}
origin: magefree/mage

public DescendantOfSoramaro(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // {1}{U}: Look at the top X cards of your library, where X is the number of cards in your hand, then put them back in any order.
  Effect effect = new LookLibraryControllerEffect(CardsInControllerHandCount.instance);
  effect.setText("Look at the top X cards of your library, where X is the number of cards in your hand, then put them back in any order");
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
      effect, new ManaCostsImpl("{1}{U}")));
}
origin: magefree/mage

public InformationDealer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: Look at the top X cards of your library, where X is the number of Wizards on the battlefield, then put them back in any order.
  Effect effect = new LookLibraryControllerEffect(new PermanentsOnBattlefieldCount(filter));
  effect.setText("Look at the top X cards of your library, where X is the number of Wizards on the battlefield, then put them back in any order.");
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost()));
}
origin: magefree/mage

public SpyNetwork(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
  // Look at target player's hand, the top card of that player's library, and any face-down creatures he or she controls. Look at the top four cards of your library, then put them back in any order.
  this.getSpellAbility().addEffect(new SpyNetworkLookAtTargetPlayerHandEffect());
  this.getSpellAbility().addEffect(new LookLibraryTopCardTargetPlayerEffect().setText(" the top card of that player's library"));
  this.getSpellAbility().addEffect(new SpyNetworkFaceDownEffect());
  this.getSpellAbility().addEffect(new LookLibraryControllerEffect(4, false, true));
  this.getSpellAbility().addTarget(new TargetPlayer());
}
mage.abilities.effects.commonLookLibraryControllerEffect<init>

Popular methods of LookLibraryControllerEffect

  • actionWithSelectedCards
  • mayShuffle
    Check to shuffle library if allowed
  • putCardsBack
    Put the rest of the cards back to defined zone
  • setText

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
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