congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RevealSecretOpponentCost
Code IndexAdd Tabnine to your IDE (free)

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

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

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

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now