Tabnine Logo
SpectacleAbility.getEffects
Code IndexAdd Tabnine to your IDE (free)

How to use
getEffects
method
in
mage.abilities.keyword.SpectacleAbility

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

origin: magefree/mage

public SpectacleAbility(Card card, ManaCost spectacleCosts) {
  super(spectacleCosts, card.getName() + " with spectacle", Zone.HAND, SpellAbilityType.BASE_ALTERNATE);
  this.getCosts().addAll(card.getSpellAbility().getCosts().copy());
  this.getEffects().addAll(card.getSpellAbility().getEffects().copy());
  this.getTargets().addAll(card.getSpellAbility().getTargets().copy());
  this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
  this.timing = card.getSpellAbility().getTiming();
  this.setRuleAtTheTop(true);
  this.rule = "Spectacle " + spectacleCosts.getText()
      + " <i>(You may cast this spell for its spectacle cost rather than its mana cost if an opponent lost life this turn.)</i>";
}
mage.abilities.keywordSpectacleAbilitygetEffects

Popular methods of SpectacleAbility

  • <init>
  • getCosts
  • getRule
  • getSourceId
  • getTargets
  • setRuleAtTheTop

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • 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
  • BoxLayout (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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