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

How to use
mage.abilities.effects.common.continuous.PlayAdditionalLandsAllEffect
constructor

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

origin: magefree/mage

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

public RitesOfFlourishing(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
  // At the beginning of each player's draw step, that player draws an additional card.
  this.addAbility(new RitesOfFlourishingAbility());
  // Each player may play an additional land on each of their turns.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayAdditionalLandsAllEffect()));
}
origin: magefree/mage

public StormCauldron(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{5}");
  // Each player may play an additional land during each of their turns.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayAdditionalLandsAllEffect()));
  // Whenever a land is tapped for mana, return it to its owner's hand.
  Effect effect = new ReturnToHandTargetEffect();
  effect.setText("return it to its owner's hand");
  this.addAbility(new TapLandForManaAllTriggeredAbility(effect, false, true));
}
origin: magefree/mage

public GhirapurOrrery(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
  // Each player may play an additional land on each of their turns.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PlayAdditionalLandsAllEffect()));
  // At the beginning of each player's upkeep, if that player has no cards in hand, that player draws three cards.
  this.addAbility(new ConditionalInterveningIfTriggeredAbility(
      new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(3), TargetController.ANY, false, true),
      new GhirapurOrreryCondition(),
      "At the beginning of each player's upkeep, if that player has no cards in hand, that player draws three cards."));
}
origin: magefree/mage

  public NayaPlane() {
    this.setName("Plane - Naya");
    this.setExpansionSetCodeForImage("PCA");

    // You may play any number of lands on each of your turns
    Ability ability = new SimpleStaticAbility(Zone.COMMAND, new PlayAdditionalLandsAllEffect(Integer.MAX_VALUE));
    this.getAbilities().add(ability);

    // Active player can roll the planar die: Whenever you roll {CHAOS}, target red, green or white creature you control gets +1/+1 until end of turn for each land you control
    DynamicValue dynamicValue = new PermanentsOnBattlefieldCount(StaticFilters.FILTER_CONTROLLED_PERMANENT_LANDS);
    Effect chaosEffect = new BoostTargetEffect(dynamicValue, dynamicValue, Duration.EndOfTurn);
    Target chaosTarget = new TargetControlledCreaturePermanent(1, 1, filter, false);

    List<Effect> chaosEffects = new ArrayList<>();
    chaosEffects.add(chaosEffect);
    List<Target> chaosTargets = new ArrayList<>();
    chaosTargets.add(chaosTarget);

    ActivateIfConditionActivatedAbility chaosAbility = new ActivateIfConditionActivatedAbility(Zone.COMMAND, new RollPlanarDieEffect(chaosEffects, chaosTargets), new GenericManaCost(0), MainPhaseStackEmptyCondition.instance);
    chaosAbility.addWatcher(new PlanarRollWatcher());
    this.getAbilities().add(chaosAbility);
    chaosAbility.setMayActivate(TargetController.ANY);
    this.getAbilities().add(new SimpleStaticAbility(Zone.ALL, new PlanarDieRollCostIncreasingEffect(chaosAbility.getOriginalId())));
  }
}
mage.abilities.effects.common.continuousPlayAdditionalLandsAllEffect<init>

Popular methods of PlayAdditionalLandsAllEffect

    Popular in Java

    • Making http post requests using okhttp
    • addToBackStack (FragmentTransaction)
    • getSharedPreferences (Context)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • Queue (java.util)
      A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top PhpStorm 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