Codota Logo
RevealSecretOpponentCost.<init>
Code IndexAdd Codota to your IDE (free)

How to use
mage.abilities.costs.common.RevealSecretOpponentCost
constructor

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: magefree/mage

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

public StalkingLeonin(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
  this.subtype.add(SubType.CAT, SubType.ARCHER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // When Stalking Leonin enters the battlefield, secretly choose an opponent.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new ChooseSecretOpponentEffect(), false));
  // Reveal the player you chose: Exile target creature that's attacking you if it's controlled by the chosen player. Activate this ability only once.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new StalkingLeoninEffect(), new RevealSecretOpponentCost());
  ability.addTarget(new TargetCreaturePermanent(new FilterCreatureAttackingYou()));
  this.addAbility(ability);
}
origin: magefree/mage

public EmissaryOfGrudges(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{R}");
  this.subtype.add(SubType.EFREET);
  this.power = new MageInt(6);
  this.toughness = new MageInt(5);
  // flying
  this.addAbility(FlyingAbility.getInstance());
  // haste
  this.addAbility(HasteAbility.getInstance());
  // As Emissary of Grudges enters the battlefield, secretly choose an opponent.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new EntersBattlefieldEffect(new ChooseSecretOpponentEffect(),"As {this} enters the battlefield, secretly choose an opponent.")));
  // Choose new targets for target spell or ability if it’s controlled by the chosen player and if it targets you
  // or a permanent you control. Activate this ability only once.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EmissaryOfGrudgesEffect(), new RevealSecretOpponentCost());
  ability.addTarget(new TargetStackObject());
  this.addAbility(ability);
}
mage.abilities.costs.commonRevealSecretOpponentCost<init>

Popular methods of RevealSecretOpponentCost

    Popular in Java

    • Reactive rest calls using spring rest template
    • startActivity (Activity)
    • setContentView (Activity)
    • getApplicationContext (Context)
    • GridLayout (java.awt)
      The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • Hashtable (java.util)
      Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now