Codota Logo
FightTargetSourceEffect.<init>
Code IndexAdd Codota to your IDE (free)

How to use
mage.abilities.effects.common.FightTargetSourceEffect
constructor

Best Java code snippets using mage.abilities.effects.common.FightTargetSourceEffect.<init> (Showing top 11 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

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

public UlrichUncontestedAlphaAbility() {
  super(Zone.BATTLEFIELD, new FightTargetSourceEffect(), true);
  Target target = new TargetCreaturePermanent(filter);
  this.addTarget(target);
}
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 NessianWildsRavager(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}{G}");
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Tribute 6
  this.addAbility(new TributeAbility(6));
  // When Nessian Wilds Ravager enters the battlefield, if tribute wasn't paid, you may have Nessian Wilds Ravager fight another target creature.
  TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect(), true);
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(new ConditionalInterveningIfTriggeredAbility(ability, TributeNotPaidCondition.instance,
      "When {this} enters the battlefield, if its tribute wasn't paid, you may have {this} fight another target creature."));
}
origin: magefree/mage

public FoeRazerRegent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}{G}");
  this.subtype.add(SubType.DRAGON);
  this.power = new MageInt(4);
  this.toughness = new MageInt(5);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // When Foe-Razer Regent enters the battlefield, you may have it fight target creature you don't control.
  Ability ability = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect(), true);
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
  // Whenever a creature you control fights, put two +1/+1 counters on it at the beginning of the next end step.
  this.addAbility(new FoeRazerRegentTriggeredAbility());
}
origin: magefree/mage

public TerritorialAllosaurus(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{G}");
  this.subtype.add(SubType.DINOSAUR);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Kicker {2}{G}
  this.addAbility(new KickerAbility("{2}{G}"));
  // When Territorial Allosaurus enters the battlefield, if it was kicked, it fights another target creature.
  EntersBattlefieldTriggeredAbility ability
      = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect());
  Ability conditionalAbility = new ConditionalInterveningIfTriggeredAbility(ability, KickedCondition.instance,
      "When {this} enters the battlefield, if it was kicked, it fights another target creature.");
  FilterCreaturePermanent filter = new FilterCreaturePermanent();
  filter.add(AnotherPredicate.instance);
  conditionalAbility.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(conditionalAbility);
}
origin: magefree/mage

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

public SetessanTactics(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
  // Strive - Setessan Tactics costs G more to cast for each target beyond the first.
  this.addAbility(new StriveAbility("{G}"));
  // Until end of turn, any number of target creatures each get +1/+1 and gain "T: This creature fights another target creature."
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, Integer.MAX_VALUE));
  Effect effect = new BoostTargetEffect(1, 1, Duration.EndOfTurn);
  effect.setText("Until end of turn, any number of target creatures each get +1/+1");
  this.getSpellAbility().addEffect(effect);
  Ability gainedAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new FightTargetSourceEffect(), new TapSourceCost());
  gainedAbility.addTarget(new TargetCreaturePermanent(filter));
  this.getSpellAbility().addEffect(new GainAbilityTargetEffect(gainedAbility, Duration.EndOfTurn,
      "and gain \"{T}: This creature fights another target creature.\""));
}
origin: magefree/mage

public AtzocanArcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.ARCHER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  // Reach
  this.addAbility(ReachAbility.getInstance());
  // When Atzocan Archer enters the battlefield, you may have it fight another target creature.
  Effect effect = new FightTargetSourceEffect();
  effect.setText("you may have it fight another target creature");
  Ability ability = new EntersBattlefieldTriggeredAbility(effect, 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.commonFightTargetSourceEffect<init>

Popular methods of FightTargetSourceEffect

  • getTargetPointer
  • setText

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