congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PutCardFromHandOntoBattlefieldEffect.apply
Code IndexAdd Tabnine to your IDE (free)

How to use
apply
method
in
mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect

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

origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    if (AddendumCondition.instance.apply(game, source)) {
      new PutCardFromHandOntoBattlefieldEffect(filter).apply(game, source);
    }
    return ExileSpellEffect.getInstance().apply(game, source);
  }
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player == null) {
      return false;
    }
    int xValue = source.getManaCostsToPay().getX();
    FilterCreatureCard filter = new FilterCreatureCard("a creature with converted mana cost " + xValue);
    filter.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, xValue));
    if (new PutCardFromHandOntoBattlefieldEffect(filter).apply(game, source)) {
      return new ReturnToHandSourceEffect(true).apply(game, source);
    }
    return false;
  }
}
origin: magefree/mage

putIntoPlay.apply(game, source);
mage.abilities.effects.commonPutCardFromHandOntoBattlefieldEffectapply

Popular methods of PutCardFromHandOntoBattlefieldEffect

  • <init>
  • getTargetPointer
  • setText

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
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