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

How to use
mage.abilities.common.WinsCoinFlipTriggeredAbility
constructor

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

origin: magefree/mage

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

public ZndrspltEyeOfWisdom(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HOMUNCULUS);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  // Partner with Okaun, Eye of Chaos (When this creature enters the battlefield, target player may put Okaun into their hand from their library, then shuffle.)
  this.addAbility(new PartnerWithAbility("Okaun, Eye of Chaos", true));
  // At the beginning of combat on your turn, flip a coin until you lose a flip.
  this.addAbility(new BeginningOfCombatTriggeredAbility(new FlipUntilLoseEffect(), TargetController.YOU, false));
  // Whenever a player wins a coin flip, draw a card.
  this.addAbility(new WinsCoinFlipTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public OkaunEyeOfChaos(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.CYCLOPS);
  this.subtype.add(SubType.BERSERKER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Partner with Zndrsplt, Eye of Wisdom (When this creature enters the battlefield, target player may put Zndrsplt into their hand from their library, then shuffle.)
  this.addAbility(new PartnerWithAbility("Zndrsplt, Eye of Wisdom", true));
  // At the beginning of combat on your turn, flip a coin until you lose a flip.
  this.addAbility(new BeginningOfCombatTriggeredAbility(new FlipUntilLoseEffect(), TargetController.YOU, false));
  // Whenever a player wins a coin flip, double Okaun's power and toughness until end of turn.
  this.addAbility(new WinsCoinFlipTriggeredAbility(
      new BoostSourceEffect(
          sourcePower,
          sourceToughness,
          Duration.EndOfTurn,
          true
      ).setText("double {this}'s power and toughness until end of turn")
  ));
}
mage.abilities.commonWinsCoinFlipTriggeredAbility<init>

Popular methods of WinsCoinFlipTriggeredAbility

    Popular in Java

    • Reading from database using SQL prepared statement
    • getResourceAsStream (ClassLoader)
    • setContentView (Activity)
    • requestLocationUpdates (LocationManager)
    • Point (java.awt)
      A point representing a location in (x,y) coordinate space, specified in integer precision.
    • SortedSet (java.util)
      SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • JTable (javax.swing)
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • 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