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

How to use
mage.abilities.costs.common.CyclingDiscardCost
constructor

Best Java code snippets using mage.abilities.costs.common.CyclingDiscardCost.<init> (Showing top 4 results out of 315)

origin: magefree/mage

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

public CyclingAbility(Cost cost) {
  super(Zone.HAND, new DrawCardSourceControllerEffect(1), cost);
  this.addCost(new CyclingDiscardCost());
  this.cost = cost;
  this.text = "Cycling";
}
origin: magefree/mage

public CyclingAbility(Cost cost, FilterCard filter, String text) {
  super(Zone.HAND, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, true), cost);
  this.addCost(new CyclingDiscardCost());
  this.cost = cost;
  this.text = text;
}
origin: magefree/mage

@Override
public boolean apply(Game game, Ability source, Ability abilityToModify) {
  Player controller = game.getPlayer(abilityToModify.getControllerId());
  if (controller != null) {
    if ((abilityToModify instanceof ActivatedAbility && ((ActivatedAbility) abilityToModify).isCheckPlayableMode()) || controller.chooseUse(Outcome.PlayForFree, "Pay {0} to cycle?", source, game)) {
      abilityToModify.getCosts().clear();
      abilityToModify.getManaCostsToPay().clear();
      abilityToModify.getCosts().add(new CyclingDiscardCost());
    }
    return true;
  }
  return false;
}
mage.abilities.costs.commonCyclingDiscardCost<init>

Popular methods of CyclingDiscardCost

    Popular in Java

    • Finding current android device location
    • requestLocationUpdates (LocationManager)
    • runOnUiThread (Activity)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • Thread (java.lang)
      A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • Date (java.util)
      A specific moment in time, with millisecond precision. Values typically come from System#currentTime
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • Reference (javax.naming)
    • Options (org.apache.commons.cli)
      Main entry-point into the library. Options represents a collection of Option objects, which describ
    • 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