congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
NinjutsuAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
NinjutsuAbility
in
mage.abilities.keyword

Best Java code snippets using mage.abilities.keyword.NinjutsuAbility (Showing top 14 results out of 315)

origin: magefree/mage

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

public NinjutsuAbility(ManaCost manaCost, boolean commander) {
  super(commander ? Zone.ALL : Zone.HAND, new NinjutsuEffect(), manaCost);
  this.addCost(new RevealNinjutsuCardCost(commander));
  this.addCost(new ReturnAttackerToHandTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
  this.commander = commander;
}
origin: magefree/mage

  @Override
  public String getRule() {
    return (commander ? "Commander n" : "N") + "injutsu "
        + getManaCostsToPay().getText() + " <i>("
        + getManaCostsToPay().getText()
        + " Return an unblocked attacker you control to hand: "
        + "Put this card onto the battlefield from your hand"
        + (commander ? " or the command zone " : " ")
        + "tapped and attacking.)</i>";
  }
}
origin: magefree/mage

public MistbladeShinobi(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Ninjutsu {1}{U} ({1}{U}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{U}")));
  // Whenever Mistblade Shinobi deals combat damage to a player, you may return target creature that player controls to its owner's hand.
  this.addAbility(new MistbladeShinobiTriggeredAbility());
}
origin: magefree/mage

public ThroatSlitter(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.RAT);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Ninjutsu {2}{B} ({2}{B}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{2}{B}")));
  // Whenever Throat Slitter deals combat damage to a player, destroy target nonblack creature that player controls.
  this.addAbility(new ThroatSlitterTriggeredAbility());
}
origin: magefree/mage

public NinjaOfTheDeepHours(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Ninjutsu {1}{U} ({1}{U}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{1}{U}")));
  // Whenever Ninja of the Deep Hours deals combat damage to a player, you may draw a card.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1), true, false));
}
origin: magefree/mage

public SilentBladeOni(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}{B}{B}");
  this.subtype.add(SubType.DEMON);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(6);
  this.toughness = new MageInt(5);
  // Ninjutsu {4}{U}{B}
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{4}{U}{B}")));
  // Whenever Silent-Blade Oni deals combat damage to a player, look at that player's hand. You may cast a nonland card in it without paying that card's mana cost.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SilentBladeOniEffect(), false, true));
}
origin: magefree/mage

public OkibaGangShinobi(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}{B}");
  this.subtype.add(SubType.RAT);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Ninjutsu {3}{B} ({3}{B}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{3}{B}")));
  // Whenever Okiba-Gang Shinobi deals combat damage to a player, that player discards two cards.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(2), false, true));
}
origin: magefree/mage

public Skullsnatcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.RAT);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Ninjutsu {B} ({B}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{B")));
  
  // Whenever Skullsnatcher deals combat damage to a player, exile up to two target cards from that player's graveyard.
  Effect effect = new ExileTargetEffect(null, "", Zone.GRAVEYARD);
  effect.setText("exile up to two target cards from that player's graveyard");
  this.addAbility(new SkullsnatcherTriggeredAbility(effect));
}
origin: magefree/mage

public YurikoTheTigersShadow(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{B}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Commander ninjutsu {U}{B}
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{U}{B}"), true));
  // Whenever a Ninja you control deals combat damage to a player, reveal the top card of your library and put that card into your hand. Each opponent loses life equal to that card's converted mana cost.
  this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
      new YurikoTheTigersShadowEffect(), filter,
      false, SetTargetPointer.NONE, true
  ));
}
origin: magefree/mage

public SakashimasStudent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Ninjutsu {1}{U}
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{1}{U}")));
  // You may have Sakashima's Student enter the battlefield as a copy of any creature on the battlefield, except it's still a Ninja in addition to its other creature types.
  Effect effect = new CopyPermanentEffect(StaticFilters.FILTER_PERMANENT_CREATURE, new AddSubtypeApplier(SubType.NINJA));
  effect.setText("as a copy of any creature on the battlefield, except it's a Ninja in addition to its other creature types");
  this.addAbility(new EntersBattlefieldAbility(effect, true));
}
origin: magefree/mage

public InkEyesServantOfOni(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}");
  this.subtype.add(SubType.RAT);
  this.subtype.add(SubType.NINJA);
  addSuperType(SuperType.LEGENDARY);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // Ninjutsu {3}{B}{B} ({3}{B}{B}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{3}{B}{B}")));
  // Whenever Ink-Eyes, Servant of Oni deals combat damage to a player, you may put target creature card from that player's graveyard onto the battlefield under your control.
  this.addAbility(new InkEyesServantOfOniTriggeredAbility());
  // {1}{B}: Regenerate Ink-Eyes.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}")));
}
origin: magefree/mage

public WalkerOfSecretWays(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // Ninjutsu {1}{U} ({1}{U}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{1}{U}")));
  // Whenever Walker of Secret Ways deals combat damage to a player, look at that player's hand.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new WalkerOfSecretWaysEffect(), false, true));
  // {1}{U}: Return target Ninja you control to its owner's hand. Activate this ability only during your turn.
  Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}"), MyTurnCondition.instance);
  ability.addTarget(new TargetControlledCreaturePermanent(1,1, filterCreature, false));
  this.addAbility(ability);
}
origin: magefree/mage

public HigureTheStillWind(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.NINJA);
  addSuperType(SuperType.LEGENDARY);
  this.power = new MageInt(3);
  this.toughness = new MageInt(4);
  // Ninjutsu {2}{U}{U} ({2}{U}{U}, Return an unblocked attacker you control to hand: Put this card onto the battlefield from your hand tapped and attacking.)
  this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{2}{U}{U}")));
  // Whenever Higure, the Still Wind deals combat damage to a player, you may search your library for a Ninja card, reveal it, and put it into your hand. If you do, shuffle your library.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true, false), true));
  // {2}: Target Ninja creature can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new GenericManaCost(2));
  ability.addTarget(new TargetCreaturePermanent(filterCreature));
  this.addAbility(ability);
}
mage.abilities.keywordNinjutsuAbility

Javadoc

702.47. Ninjutsu 702.47a Ninjutsu is an activated ability that functions only while the card with ninjutsu is in a player's hand. "Ninjutsu [cost]" means "[Cost], Reveal this card from your hand, Return an unblocked attacking creature you control to its owner's hand: Put this card onto the battlefield from your hand tapped and attacking." 702.47b The card with ninjutsu remains revealed from the time the ability is announced until the ability leaves the stack. 702.47c A ninjutsu ability may be activated only while a creature on the battlefield is unblocked (see rule 509.1h). The creature with ninjutsu is put onto the battlefield unblocked. It will be attacking the same player or planeswalker as the creature that was returned to its owner's hand.

Most used methods

  • <init>
  • addCost
  • getManaCostsToPay

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top 17 PhpStorm Plugins
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