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

How to use
DiscardSourceCost
in
mage.abilities.costs.common

Best Java code snippets using mage.abilities.costs.common.DiscardSourceCost (Showing top 6 results out of 315)

origin: magefree/mage

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

public ChannelAbility(String manaString, Effect effect, TimingRule timing) {
  super(Zone.HAND, effect, new ManaCostsImpl(manaString));
  this.addCost(new DiscardSourceCost());
  this.timing = timing;
}
origin: magefree/mage

public TransmuteAbility(String manaCost) {
  super(Zone.HAND, new TransmuteEffect(), new ManaCostsImpl(manaCost));
  this.setTiming(TimingRule.SORCERY);
  this.addCost(new DiscardSourceCost());
}
origin: magefree/mage

public BloodrushAbility(String manaString, Effect effect) {
  super(Zone.HAND, effect, new ManaCostsImpl(manaString));
  this.addCost(new DiscardSourceCost());
  this.addTarget(new TargetAttackingCreature());
}
origin: magefree/mage

public ReinforceAbility(DynamicValue count, Cost cost) {
  super(Zone.HAND, new AddCountersTargetEffect(CounterType.P1P1.createInstance(0), count), cost);
  this.addCost(new DiscardSourceCost());
  this.addTarget(new TargetCreaturePermanent());
  this.cost = cost.copy();
  this.count = count;
}
origin: magefree/mage

public FaerieMacabre(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{B}");
  this.subtype.add(SubType.FAERIE);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Discard Faerie Macabre: Exile up to two target cards from graveyards.
  Ability ability = new SimpleActivatedAbility(Zone.HAND, new ExileTargetEffect(), new DiscardSourceCost());
  ability.addTarget(new TargetCardInGraveyard(0, 2, new FilterCard("cards from graveyards")));
  this.addAbility(ability);
}
mage.abilities.costs.commonDiscardSourceCost

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 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