congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PlayAdditionalLandsAllEffect
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using mage.abilities.effects.common.continuous.PlayAdditionalLandsAllEffect (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

Javadoc

Each player may play an additional land on each of their turns.

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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