congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LeavesBattlefieldAllTriggeredAbility.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.common.LeavesBattlefieldAllTriggeredAbility
constructor

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

origin: magefree/mage

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

  public AurraSingBaneOfJediEmblem() {
    this.setName("Emblem Aurra Sing, Bane of Jedi");
    getAbilities().add(new LeavesBattlefieldAllTriggeredAbility(Zone.COMMAND, new DiscardControllerEffect(1), filter, false));
  }
}
origin: magefree/mage

public DualNature(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{G}{G}");
  // Whenever a nontoken creature enters the battlefield, its controller creates a token that's a copy of that creature.
  this.addAbility(new EntersBattlefieldAllTriggeredAbility(
      Zone.BATTLEFIELD, new DualNatureCreateTokenEffect(), filter, false, SetTargetPointer.PERMANENT,
      "Whenever a nontoken creature enters the battlefield, its controller creates a token that's a copy of that creature."
  ));
  // Whenever a nontoken creature leaves the battlefield, exile all tokens with the same name as that creature.
  this.addAbility(new LeavesBattlefieldAllTriggeredAbility(
      Zone.BATTLEFIELD, new DualNatureCreatureLeavesEffect(), filter, false, SetTargetPointer.PERMANENT
  ));
  // When Dual Nature leaves the battlefield, exile all tokens created with Dual Nature.
  this.addAbility(new DualNatureLeavesBattlefieldTriggeredAbility());
}
origin: magefree/mage

public ExtractorDemon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}");
  this.subtype.add(SubType.DEMON);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Whenever another creature leaves the battlefield, you may have target player put the top two cards of their library into their graveyard.
  Ability ability = new LeavesBattlefieldAllTriggeredAbility(new PutLibraryIntoGraveTargetEffect(2), filter, true);
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
  // Unearth {2}{B}
  this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}")));
}
origin: magefree/mage

public TwilightDrover(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever a creature token leaves the battlefield, put a +1/+1 counter on Twilight Drover.
  this.addAbility(new LeavesBattlefieldAllTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), filter));
  // {2}{W}, Remove a +1/+1 counter from Twilight Drover: Create two 1/1 white Spirit creature tokens with flying.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SpiritWhiteToken("RAV"), 2), new ManaCostsImpl<>("{2}{W}"));
  ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance()));
  this.addAbility(ability);
}
mage.abilities.commonLeavesBattlefieldAllTriggeredAbility<init>

Popular methods of LeavesBattlefieldAllTriggeredAbility

  • getControllerId
  • getEffects
  • getSourceId

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSystemService (Context)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
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