congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PayMoreToCastAsThoughtItHadFlashAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
PayMoreToCastAsThoughtItHadFlashAbility
in
mage.abilities.common

Best Java code snippets using mage.abilities.common.PayMoreToCastAsThoughtItHadFlashAbility (Showing top 8 results out of 315)

origin: magefree/mage

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

@Override
public String getRule(boolean all) {
  return getRule();
}
origin: magefree/mage

public Rout(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}{W}");
  Effect effect = new DestroyAllEffect(FILTER_PERMANENT_CREATURES, true);
  // You may cast Rout as though it had flash if you pay {2} more to cast it.
  Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl("{2}"));
  ability.addEffect(effect);
  this.addAbility(ability);
  // Destroy all creatures. They can't be regenerated.
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public BreakingWave(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}{U}");
  Effect effect = new BreakingWaveEffect();
  // You may cast Breaking Wave as though it had flash if you pay {2} more to cast it.
  Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl("{2}"));
  ability.addEffect(effect);
  this.addAbility(ability);
  // Simultaneously untap all tapped creatures and tap all untapped creatures.
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public TwilightsCall(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}");
  Effect effect = new TwilightsCallEffect();
  // You may cast Twilight's Call as though it had flash if you pay {2} more to cast it.
  Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl("{2}"));
  ability.addEffect(effect);
  this.addAbility(ability);
  // Each player returns all creature cards from their graveyard to the battlefield.
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public GhituFire(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}");
  Effect effect = new DamageTargetEffect(ManacostVariableValue.instance);
  // You may cast Ghitu Fire as though it had flash if you pay {2} more to cast it.
  Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl("{2}"));
  ability.addEffect(effect);
  ability.addTarget(new TargetAnyTarget());
  ability.setRuleAtTheTop(true);
  this.addAbility(ability);
  // Ghitu Fire deals X damage to any target.
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetAnyTarget());
}
origin: magefree/mage

public HarbingerOfTheTides(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // You may cast Harbinger of the Tides as though it had flash if you pay {2} more to cast it.
  this.addAbility(new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl<>("{2}")));
  // When Harbinger of the Tides enters the battlefield, you may return target tapped creature an opponent controls to its owner's hand.
  Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), true);
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public SaprolingSymbiosis(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}");
  Effect effect = new CreateTokenEffect(new SaprolingToken(), new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()));
  // You may cast Saproling Symbiosis as though it had flash if you pay {2} more to cast it.
  Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, new ManaCostsImpl("{2}"));
  ability.addEffect(effect);
  ability.setRuleAtTheTop(true);
  this.addAbility(ability);
  // Create a 1/1 green Saproling creature token for each creature you control.
  this.getSpellAbility().addEffect(effect);
}
mage.abilities.commonPayMoreToCastAsThoughtItHadFlashAbility

Most used methods

  • <init>
  • getRule

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now