Tabnine Logo
PhaseInTriggeredAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
PhaseInTriggeredAbility
in
mage.abilities.common

Best Java code snippets using mage.abilities.common.PhaseInTriggeredAbility (Showing top 4 results out of 315)

origin: magefree/mage

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

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  return getSourceId().equals(event.getTargetId());
}
origin: magefree/mage

public ShimmeringEfreet(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
  this.subtype.add(SubType.EFREET);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Phasing
  this.addAbility(PhasingAbility.getInstance());
  // Whenever Shimmering Efreet phases in, target creature phases out.
  Ability ability = new PhaseInTriggeredAbility(new PhaseOutTargetEffect(), false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public WarpingWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{U}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Phasing
  this.addAbility(PhasingAbility.getInstance());
  // At the beginning of your upkeep, Warping Wurm phases out unless you pay {2}{G}{U}.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(
      new DoUnlessControllerPaysEffect(
          new PhaseOutSourceEffect(),
          new ManaCostsImpl("{2}{G}{U}")
      ).setText("{this} phases out unless you pay {2}{G}{U}"),
      TargetController.YOU, false
  ));
  // When Warping Wurm phases in, put a +1/+1 counter on it.
  this.addAbility(new PhaseInTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
}
mage.abilities.commonPhaseInTriggeredAbility

Most used methods

  • <init>
  • getSourceId

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Option (scala)
  • Top plugins for WebStorm
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