Tabnine Logo
CastWithoutPayingManaCostEffect
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using mage.abilities.effects.common.cost.CastWithoutPayingManaCostEffect (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

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Top plugins for WebStorm
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