Tabnine Logo
AssignNoCombatDamageSourceEffect.setText
Code IndexAdd Tabnine to your IDE (free)

How to use
setText
method
in
mage.abilities.effects.common.continuous.AssignNoCombatDamageSourceEffect

Best Java code snippets using mage.abilities.effects.common.continuous.AssignNoCombatDamageSourceEffect.setText (Showing top 2 results out of 315)

origin: magefree/mage

public AssignNoCombatDamageSourceEffect(Duration duration, boolean partOfOptionalEffect) {
  super(duration, Outcome.PreventDamage);
  this.partOfOptionalEffect = partOfOptionalEffect;
  staticText = setText();
}
origin: magefree/mage

public LaccolithRig(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{R}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Whenever enchanted creature becomes blocked, you may have it deal damage equal to its power to target creature. If you do, the first creature assigns no combat damage this turn.
  Ability ability2 = new EnchantedCreatureBlockedTriggeredAbility(new LaccolithRigEffect(), true);
  ability2.addTarget(new TargetCreaturePermanent());
  Effect effect = new GainAbilityTargetEffect(new SimpleStaticAbility(Zone.BATTLEFIELD, new AssignNoCombatDamageSourceEffect(Duration.Custom, true).setText("")), Duration.EndOfTurn, "If you do, the first creature assigns no combat damage this turn");
  ability2.addEffect(effect);
  this.addAbility(ability2);
}
mage.abilities.effects.common.continuousAssignNoCombatDamageSourceEffectsetText

Popular methods of AssignNoCombatDamageSourceEffect

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • Kernel (java.awt.image)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JOptionPane (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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