Codota Logo
DiscardSourceCost.<init>
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
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<init>

Popular methods of DiscardSourceCost

    Popular in Java

    • Reading from database using SQL prepared statement
    • setRequestProperty (URLConnection)
    • getSystemService (Context)
    • getExternalFilesDir (Context)
    • ByteBuffer (java.nio)
      A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • LinkedHashMap (java.util)
      Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • PriorityQueue (java.util)
      An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now