Tabnine Logo
CastWithoutPayingManaCostEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.cost.CastWithoutPayingManaCostEffect
constructor

Best Java code snippets using mage.abilities.effects.common.cost.CastWithoutPayingManaCostEffect.<init> (Showing top 7 results out of 315)

origin: magefree/mage

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

public YahennisExpertise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
  // All creatures get -3/-3 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-3, -3, Duration.EndOfTurn));
  // You may cast a card with converted mana cost 3 or less from your hand without paying its mana cost.
  this.getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(3));
}
origin: magefree/mage

public RishkarsExpertise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{G}{G}");
  // Draw cards equal to the greatest power among creatures you control.
  Effect effect = new DrawCardSourceControllerEffect(GreatestPowerAmongControlledCreaturesValue.instance);
  effect.setText("Draw cards equal to the greatest power among creatures you control");
  this.getSpellAbility().addEffect(effect);
  // You may cast a card with converted mana cost 5 or less from your hand without paying its mana cost.
  this.getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(5));
}
origin: magefree/mage

public SramsExpertise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{W}{W}");
  // Create three 1/1 colorless Servo artifact creature tokens.
  this.getSpellAbility().addEffect(new CreateTokenEffect(new ServoToken(), 3));
  // You may cast a card with converted mana cost 3 or less from your hand without paying its mana cost.
  this.getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(3));
}
origin: magefree/mage

public BaralsExpertise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}{U}");
  // Return up to three target artifacts and/or creatures to their owners' hands.
  getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  getSpellAbility().addTarget(new TargetPermanent(0, 3, filter, false));
  // You may cast a card with converted mana cost 4 or less from your hand without paying its mana cost.
  getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(4));
}
origin: magefree/mage

public Electrodominance(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{X}{R}{R}");
  // Electrodominance deals X damage to any target. You may cast a card with converted mana cost X or less from your hand without paying its mana cost.
  this.getSpellAbility().addEffect(new DamageTargetEffect(ManacostVariableValue.instance));
  this.getSpellAbility().addTarget(new TargetAnyTarget());
  this.getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(ManacostVariableValue.instance));
}
origin: magefree/mage

public KariZevsExpertise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}{R}");
  // Gain control of target creature or Vehicle until end of turn. Untap it. It gains haste until end of turn.
  this.getSpellAbility().addTarget(new TargetPermanent(filter));
  this.getSpellAbility().addEffect(new GainControlTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addEffect(new UntapTargetEffect().setText("Untap it"));
  this.getSpellAbility().addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn).setText("It gans haste until end of turn."));
  // You may cast a card with converted mana cost 2 or less from your hand without paying its mana cost.
  this.getSpellAbility().addEffect(new CastWithoutPayingManaCostEffect(2));
}
mage.abilities.effects.common.costCastWithoutPayingManaCostEffect<init>

Popular methods of CastWithoutPayingManaCostEffect

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • notifyDataSetChanged (ArrayAdapter)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getSupportFragmentManager (FragmentActivity)
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • MalformedURLException (java.net)
      This exception is thrown when a program attempts to create an URL from an incorrect specification.
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • BoxLayout (javax.swing)
    • Top PhpStorm 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