Tabnine Logo
BecomesCreatureTargetEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect
constructor

Best Java code snippets using mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public Soilshaper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever you cast a Spirit or Arcane spell, target land becomes a 3/3 creature until end of turn. It's still a land.
  Ability ability = new SpellCastControllerTriggeredAbility(new BecomesCreatureTargetEffect(new CreatureToken(3, 3), false, true, Duration.EndOfTurn), StaticFilters.SPIRIT_OR_ARCANE_CARD, false);
  ability.addTarget(new TargetLandPermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public MishrasGroundbreaker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
  // {tap}, Sacrifice Mishra's Groundbreaker: Target land becomes a 3/3 artifact creature that's still a land. (This effect lasts indefinitely.)
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(new MishrasGroundbreakerToken(), false, true, Duration.Custom), new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetLandPermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public Omnibian(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}{U}");
  this.subtype.add(SubType.FROG);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // {T}: Target creature becomes a 3/3 Frog until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(
      new CreatureToken(3, 3, "3/3 Frog", SubType.FROG),
      false, false, Duration.EndOfTurn), new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    int xValue = new PermanentsOnBattlefieldCount(filter).calculate(game, source, this);
    ContinuousEffect effect = new BecomesCreatureTargetEffect(new ElvishBranchbenderToken(xValue), false, false, Duration.EndOfTurn); // fix
    effect.setTargetPointer(targetPointer);
    game.addEffect(effect, source);
    return false;
  }
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    int amount = new PermanentsOnBattlefieldCount(filterAllies).calculate(game, source, this);
    ContinuousEffect effect = new BecomesCreatureTargetEffect(new VastwoodAnimistElementalToken(amount), false, true, Duration.EndOfTurn);
    effect.setTargetPointer(targetPointer);
    game.addEffect(effect, source);
    return false;
  }
}
origin: magefree/mage

public BalduvianConjurer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
  this.subtype.add(SubType.HUMAN, SubType.WIZARD);
  this.power = new MageInt(0);
  this.toughness = new MageInt(2);
  // {tap}: Target snow land becomes a 2/2 creature until end of turn. It's still a land.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(new CreatureToken(2, 2), false, true, Duration.EndOfTurn), new TapSourceCost());
  ability.addTarget(new TargetPermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public Hydroform(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}{U}");
  // Target land becomes a 3/3 Elemental creature with flying until end of turn. It's still a land.
  this.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new HydroformToken(), false, true, Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
}
origin: magefree/mage

public AnthousaSetessanHero(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}{G}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(4);
  this.toughness = new MageInt(5);
  // <i>Heroic</i> &mdash; Whenever you cast a spell that targets Anthousa, Setessan Hero, up to three target lands you control each become 2/2 Warrior creatures until end of turn. They're still lands.
  Ability ability = new HeroicAbility(new BecomesCreatureTargetEffect(new CreatureToken(2, 2, "2/2 Warrior creature", SubType.WARRIOR),false,true, Duration.EndOfTurn));
  ability.addTarget(new TargetControlledPermanent(0,3,new FilterControlledLandPermanent("lands"), false));
  this.addAbility(ability);
}
origin: magefree/mage

public AnimateLand(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}");
  // Until end of turn, target land becomes a 3/3 creature that's still a land.
  this.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new CreatureToken(3, 3), false, true, Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
}
origin: magefree/mage

public BalduvianFrostwaker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {U}, {T}: Target snow land becomes a 2/2 blue Elemental creature with flying. It's still a land.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(new BalduvianFrostwakerToken(), false, true, Duration.Custom), new ManaCostsImpl("{U}"));
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetPermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public TurnToFrog(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}");
  // Until end of turn, target creature loses all abilities and becomes a blue Frog with base power and toughness 1/1.
  Effect effect = new BecomesCreatureTargetEffect(new FrogToken(), true, false, Duration.EndOfTurn);
  effect.setText("Until end of turn, target creature loses all abilities and becomes a blue Frog with base power and toughness 1/1");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public DanceOfTheSkywise(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}");
  // Until end of turn, target creature you control becomes a blue Dragon Illusion with base power and toughness 4/4, loses all abilities, and gains flying.
  Effect effect = new BecomesCreatureTargetEffect(new DragonIllusionToken(), true, false, Duration.EndOfTurn);
  effect.setText("Until end of turn, target creature you control becomes a blue Dragon Illusion with base power and toughness 4/4, loses all abilities, and gains flying.");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
}
origin: magefree/mage

public FendeepSummoner(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.TREEFOLK);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(5);
  // {T}: Up to two target Swamps each become 3/5 Treefolk Warrior creatures in addition to their other types until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(
      new CreatureToken(3, 5, "3/5 Treefolk Warrior", new SubTypeList(SubType.TREEFOLK, SubType.WARRIOR)),
      false, false, Duration.EndOfTurn), new TapSourceCost());
  ability.addTarget(new TargetLandPermanent(0, 2, filter, false));
  this.addAbility(ability);
}
origin: magefree/mage

public VerdantTouch(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{G}");
  // Buyback {3}
  this.addAbility(new BuybackAbility("{3}"));
  
  // Target land becomes a 2/2 creature that's still a land.
  this.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new CreatureToken(2, 2), false, true, Duration.Custom));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
}
origin: magefree/mage

public LifesparkSpellbomb(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
  // {G}, Sacrifice Lifespark Spellbomb: Until end of turn, target land becomes a 3/3 creature that's still a land.
  Ability firstAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureTargetEffect(new CreatureToken(3, 3), false, true, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.G));
  firstAbility.addCost(new SacrificeSourceCost());
  firstAbility.addTarget(new TargetLandPermanent());
  this.addAbility(firstAbility);
  // {1}, Sacrifice Lifespark Spellbomb: Draw a card.
  Ability secondAbility = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(1));
  secondAbility.addCost(new SacrificeSourceCost());
  this.addAbility(secondAbility);
}
origin: magefree/mage

public SiegeOfTowers(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{R}");
  // Replicate {1}{R}
  this.addAbility(new ReplicateAbility(this, "{1}{R}"));
  // Target Mountain becomes a 3/1 creature. It's still a land.
  Effect effect = new BecomesCreatureTargetEffect(new CreatureToken(3, 1), false, true, Duration.EndOfGame);
  effect.setText("Target Mountain becomes a 3/1 creature. It's still a land");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetPermanent(filter));
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(source.getTargets().getFirstTarget());
    if (!permanent.isCreature() && !permanent.hasSubtype(SubType.VEHICLE, game)) {
      ContinuousEffect continuousEffect = new BecomesCreatureTargetEffect(new LifecraftAwakeningToken(), false, true, Duration.Custom);
      continuousEffect.setTargetPointer(new FixedTarget(permanent, game));
      game.addEffect(continuousEffect, source);
      return true;
    }
    return false;
  }
}
origin: magefree/mage

public Vivify(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{G}");
  // Target land becomes a 3/3 creature until end of turn. It's still a land.
  this.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new CreatureToken(3, 3), false, true, Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public Snakeform(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{G/U}");
  // Until end of turn, target creature loses all abilities and becomes a green Snake with base power and toughness 1/1.
  Effect effect = new BecomesCreatureTargetEffect(new SnakeToken(), true, false, Duration.EndOfTurn);
  effect.setText("Until end of turn, target creature loses all abilities and becomes a green Snake with base power and toughness 1/1");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  
  // Draw a card.
  effect = new DrawCardSourceControllerEffect(1);
  effect.setText("<br>Draw a card.");
  this.getSpellAbility().addEffect(effect);
  
}
origin: magefree/mage

public ElementalUprising(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
  // Target land you control becomes a 4/4 Elemental creature with haste until end of turn. It's still a land. It must be blocked this turn if able.
  getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new ElementalUprisingToken(), false, true, Duration.EndOfTurn));
  getSpellAbility().addTarget(new TargetPermanent(new FilterControlledLandPermanent()));
  Effect effect = new MustBeBlockedByAtLeastOneTargetEffect(Duration.EndOfTurn);
  effect.setText("It must be blocked this turn if able");
  getSpellAbility().addEffect(effect);
}
mage.abilities.effects.common.continuousBecomesCreatureTargetEffect<init>

Popular methods of BecomesCreatureTargetEffect

  • apply
  • discard
  • setTargetPointer
  • setText

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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