congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EntwineAbility.resetCosts
Code IndexAdd Tabnine to your IDE (free)

How to use
resetCosts
method
in
mage.abilities.keyword.EntwineAbility

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

origin: magefree/mage

@Override
public void changeModes(Ability ability, Game game) {
  if (ability instanceof SpellAbility) {
    Player player = game.getPlayer(controllerId);
    if (player != null) {
      this.resetCosts();
      if (additionalCost != null) {
        if (additionalCost.canPay(ability, ability.getSourceId(), ability.getControllerId(), game)
            && player.chooseUse(Outcome.Benefit, "Pay " + additionalCost.getText(false) + " ?", ability, game)) {
          additionalCost.activate();
          ability.getModes().setAdditionalCost(this);
          ability.getModes().setMinModes(2);
          ability.getModes().setMaxModes(2);
        }
      }
    }
  }
}
mage.abilities.keywordEntwineAbilityresetCosts

Popular methods of EntwineAbility

  • <init>
  • setRuleAtTheTop

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text 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