Codota Logo
FightTargetSourceEffect.setText
Code IndexAdd Codota to your IDE (free)

How to use
setText
method
in
mage.abilities.effects.common.FightTargetSourceEffect

Best Java code snippets using mage.abilities.effects.common.FightTargetSourceEffect.setText (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: magefree/mage

private static Effect getEffectToAdd() {
  Ability abilityToAdd = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect().setText("you may have it fight another target creature"), true);
  abilityToAdd.addTarget(new TargetCreaturePermanent(filter));
  Effect effect = new GainAbilityTargetEffect(abilityToAdd, Duration.EndOfTurn,
      "it gains \"When this creature enters the battlefield, you may have it fight another target creature.\"", true);
  return effect;
}
origin: magefree/mage

public AffectionateIndrik(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // When Affectionate Indrik enters the battlefield, you may have it fight target creature you don't control.
  Ability ability = new EntersBattlefieldTriggeredAbility(
      new FightTargetSourceEffect()
          .setText("you may have it fight "
              + "target creature you don't control"),
      true
  );
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public RavagerWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{G}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(4);
  this.toughness = new MageInt(5);
  // Riot
  this.addAbility(new RiotAbility());
  // When Ravager Wurm enters the battlefield, choose up to one —
  // • Ravager Wurm fights target creature you don't control.
  Ability ability = new EntersBattlefieldTriggeredAbility(
      new FightTargetSourceEffect().setText("{this} fights target creature you don't control"), false
  );
  ability.addTarget(new TargetPermanent(filter));
  ability.getModes().setMinModes(0);
  ability.getModes().setMaxModes(1);
  // • Destroy target land with an activated ability that isn't a mana ability.
  Mode mode = new Mode(new DestroyTargetEffect());
  mode.addTarget(new TargetPermanent(filter2));
  ability.addMode(mode);
  this.addAbility(ability);
}
mage.abilities.effects.commonFightTargetSourceEffectsetText

Popular methods of FightTargetSourceEffect

  • <init>
  • getTargetPointer

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now