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

How to use
mage.abilities.keyword.ExploitAbility
constructor

Best Java code snippets using mage.abilities.keyword.ExploitAbility.<init> (Showing top 11 results out of 315)

origin: magefree/mage

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

public ProfanerOfTheDead(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}");
  this.subtype.add(SubType.NAGA);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Exploit
  this.addAbility(new ExploitAbility());
  // When Profaner of the Dead exploits a creature, return to their owners' hands all creatures your opponents control with toughness less than the exploited creature's toughness.
  this.addAbility(new ExploitCreatureTriggeredAbility(new ProfanerOfTheDeadReturnEffect(), false, SetTargetPointer.PERMANENT));
}
origin: magefree/mage

public MinisterOfPain(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // Exploit
  this.addAbility(new ExploitAbility());
  
  // When Minister of Pain explots a creature, creatures your opponents control get -1/-1 until end of turn.
  this.addAbility(new ExploitCreatureTriggeredAbility(new BoostAllEffect(-1,-1, Duration.EndOfTurn, filter, false), false));
  
}
origin: magefree/mage

public SilumgarButcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.DJINN);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Exploit (When this creature enters the battlefield, you may sacrifice a creature.)
  this.addAbility(new ExploitAbility());
  
  // When Silumgar Butcher exploits a creature, target creature gets -3/-3 until end of turn.
  Ability ability = new ExploitCreatureTriggeredAbility(new BoostTargetEffect(-3,-3, Duration.EndOfTurn), false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  
}
origin: magefree/mage

public RakshasaGravecaller(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.CAT);
  this.subtype.add(SubType.DEMON);
  this.power = new MageInt(3);
  this.toughness = new MageInt(6);
  // Exploit
  this.addAbility(new ExploitAbility());
  // When Rakshasa Gravecaller exploits a creature, create two 2/2 black Zombie creature tokens.
  this.addAbility(new ExploitCreatureTriggeredAbility(new CreateTokenEffect(new ZombieToken(), 2), false));
}
origin: magefree/mage

public SidisisFaithful(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}");
  this.subtype.add(SubType.NAGA);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(0);
  this.toughness = new MageInt(4);
  // Exploit
  this.addAbility(new ExploitAbility());
  
  // When Sidisi's Faithful exploits a creature, return target creature to its owner's hand.
  Ability ability = new ExploitCreatureTriggeredAbility(new ReturnToHandTargetEffect(), false);
  ability.addTarget(new TargetCreaturePermanent());        
  this.addAbility(ability);
}
origin: magefree/mage

public GurmagDrowner(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}");
  this.subtype.add(SubType.NAGA);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  // Exploit
  this.addAbility(new ExploitAbility());
  // When Gurmag Drowner exploits a creature, look at the top four cards of your library. Put one of them into your hand and the rest into your graveyard.
  this.addAbility(new ExploitCreatureTriggeredAbility(new LookLibraryAndPickControllerEffect(new StaticValue(4), false, new StaticValue(1),
      StaticFilters.FILTER_CARD, Zone.GRAVEYARD, false, false, false, Zone.HAND, false), false));
}
origin: magefree/mage

public QarsiSadist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Exploit
  this.addAbility(new ExploitAbility());
  // When Qarsi Sadist exploits a creature, target opponent loses 2 life and you gain 2 life.
  Ability ability = new ExploitCreatureTriggeredAbility(new LoseLifeTargetEffect(2), false);
  ability.addTarget(new TargetOpponent());
  Effect effect = new GainLifeEffect(2);
  effect.setText("and you gain 2 life");
  ability.addEffect(effect);
  this.addAbility(ability);
}
origin: magefree/mage

public SilumgarSorcerer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Exploit (When this creature enters the battlefield, you may sacrifice a creature.)
  this.addAbility(new ExploitAbility());
  // When Silumgar Sorcerer exploits a creature, counter target creature spell.
  Ability ability = new ExploitCreatureTriggeredAbility(new CounterTargetEffect(), false);
  ability.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_CREATURE));
  this.addAbility(ability);
}
origin: magefree/mage

public VulturousAven(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.BIRD);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  
  // Exploit
  this.addAbility(new ExploitAbility());
  // When Vulturous Aven exploits a creature, you draw two cards and you lose 2 life.
  Effect effect = new DrawCardSourceControllerEffect(2);
  effect.setText("you draw two cards");
  Ability ability = new ExploitCreatureTriggeredAbility(effect, false);
  effect = new LoseLifeSourceControllerEffect(2);
  effect.setText("and you lose 2 life");
  ability.addEffect(effect);
  this.addAbility(ability);
}
origin: magefree/mage

public SidisiUndeadVizier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}{B}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.NAGA);
  this.power = new MageInt(4);
  this.toughness = new MageInt(6);
  // Deathtouch
  this.addAbility(DeathtouchAbility.getInstance());
  
  // Exploit
  this.addAbility(new ExploitAbility());
  
  // When Sidisi, Undead Vizier exploits a creature, you may search your library for a card, put it into your hand, then shuffle your library.
  this.addAbility(new ExploitCreatureTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(new FilterCard("a card")), false, true), false));
}
mage.abilities.keywordExploitAbility<init>

Popular methods of ExploitAbility

    Popular in Java

    • Making http requests using okhttp
    • scheduleAtFixedRate (ScheduledExecutorService)
    • onRequestPermissionsResult (Fragment)
    • compareTo (BigDecimal)
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • LinkedHashMap (java.util)
      LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
    • SortedSet (java.util)
      SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
    • Collectors (java.util.stream)
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    • 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