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

How to use
mage.abilities.common.SacrificePermanentTriggeredAbility
constructor

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

origin: magefree/mage

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

public CaptainLanneryStorm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.PIRATE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Haste
  this.addAbility(HasteAbility.getInstance());
  // Whenever Captain lannery Storm attacks, create a colorless Treasure artifact token with "{T}, Sacrifice this artifact: Add one mana of any color."
  this.addAbility(new AttacksTriggeredAbility(new CreateTokenEffect(new TreasureToken()), false));
  // Whenever you sacrifice a Treasure, Captain Lannery Storm gets +1/+0 until end of turn.
  this.addAbility(new SacrificePermanentTriggeredAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), filter));
}
mage.abilities.commonSacrificePermanentTriggeredAbility<init>

Popular methods of SacrificePermanentTriggeredAbility

  • getControllerId
  • setLeavesTheBattlefieldTrigger

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top 12 Jupyter Notebook extensions
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