Tabnine Logo
SoulshiftAbility.getTargets
Code IndexAdd Tabnine to your IDE (free)

How to use
getTargets
method
in
mage.abilities.keyword.SoulshiftAbility

Best Java code snippets using mage.abilities.keyword.SoulshiftAbility.getTargets (Showing top 1 results out of 315)

origin: magefree/mage

@Override
public void trigger(Game game, UUID controllerId) {
  this.getTargets().clear();
  int intValue = amount.calculate(game, this, null);
  FilterCard filter = new FilterCard("Spirit card with converted mana cost " + intValue + " or less from your graveyard");
  filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN,  intValue + 1));
  filter.add(new SubtypePredicate(SubType.SPIRIT));
  this.addTarget(new TargetCardInYourGraveyard(filter));
  super.trigger(game, controllerId); //To change body of generated methods, choose Tools | Templates.
}
mage.abilities.keywordSoulshiftAbilitygetTargets

Popular methods of SoulshiftAbility

  • <init>
  • addTarget

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • From CI to AI: The AI layer in your organization
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