Tabnine Logo
ExploitCreatureTriggeredAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
ExploitCreatureTriggeredAbility
in
mage.abilities.common

Best Java code snippets using mage.abilities.common.ExploitCreatureTriggeredAbility (Showing top 13 results out of 315)

origin: magefree/mage

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

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  if (event.getSourceId().equals(getSourceId())) {
    for (Effect effect : getEffects()) {
      if (setTargetPointer == SetTargetPointer.PERMANENT) {
        effect.setTargetPointer(new FixedTarget(event.getTargetId()));
      }
    }
    return true;
  }
  return false;
}
origin: magefree/mage

@Override
public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {
  if (event.getTargetId().equals(getSourceId()) && event.getSourceId().equals(getSourceId())) {
    if (!this.hasSourceObjectAbility(game, source, event)) {
      return false;
    }
    this.setControllerId(event.getPlayerId());
    return true; // if Exploits creature sacrifices itself, exploit triggers
  }
  return super.isInUseableZone(game, source, event);
}
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 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 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 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.commonExploitCreatureTriggeredAbility

Most used methods

  • <init>
  • getEffects
  • getSourceId
  • hasSourceObjectAbility
  • setControllerId

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Collectors (java.util.stream)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ 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