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

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

Best Java code snippets using mage.abilities.keyword.SpectacleAbility.setRuleAtTheTop (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.keywordSpectacleAbilitysetRuleAtTheTop

Popular methods of SpectacleAbility

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

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Notification (javax.management)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
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