congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TapLandForManaAllTriggeredAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
TapLandForManaAllTriggeredAbility
in
mage.abilities.common

Best Java code snippets using mage.abilities.common.TapLandForManaAllTriggeredAbility (Showing top 3 results out of 315)

origin: magefree/mage

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

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  Permanent permanent = game.getPermanentOrLKIBattlefield(event.getSourceId());
  if (permanent != null && permanent.isLand()) {
    if (setTargetPointer) {
      getEffects().get(0).setTargetPointer(new FixedTarget(permanent, game));
    }
    return true;
  }
  return false;
}
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));
}
mage.abilities.commonTapLandForManaAllTriggeredAbility

Most used methods

  • <init>
  • getEffects

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 14 Best Plugins for Eclipse
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