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

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

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

origin: magefree/mage

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

@Override
public boolean apply(Game game, Ability source) {
  MageObject sourceObject = source.getSourceObjectIfItStillExists(game);
  if (sourceObject instanceof Permanent) {
    //create delayed triggered ability
    Effect effect = new TransformTargetEffect(false);
    effect.setTargetPointer(new FixedTarget((Permanent) sourceObject, game));
    AtTheBeginOfNextUpkeepDelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(effect);
    game.addDelayedTriggeredAbility(delayedAbility, source);
  }
  return true;
}
origin: magefree/mage

public WaxingMoon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{G}");
  // Transform up to one target Werewolf you control.
  Effect effect = new TransformTargetEffect(false);
  effect.setText("Transform up to one target Werewolf you control");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 1, filter, false));
  // Creatures you control gain trample until end of turn.
  this.getSpellAbility().addEffect(new GainAbilityAllEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent(), "Creatures you control gain trample until end of turn"));
}
mage.abilities.effects.commonTransformTargetEffect<init>

Popular methods of TransformTargetEffect

  • getTargetPointer

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Top plugins for Android Studio
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