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

How to use
SoulshiftAbility
in
mage.abilities.keyword

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

origin: magefree/mage

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

@Override
public void trigger(Game game, UUID controllerId) {
  this.getTargets().clear();
  int intValue = amount.calculate(game, this, null);
  FilterCard filter = new FilterCard("Spirit card with converted mana cost " + intValue + " or less from your graveyard");
  filter.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN,  intValue + 1));
  filter.add(new SubtypePredicate(SubType.SPIRIT));
  this.addTarget(new TargetCardInYourGraveyard(filter));
  super.trigger(game, controllerId); //To change body of generated methods, choose Tools | Templates.
}
origin: magefree/mage

public ForkedBranchGarami(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Soulshift 4, soulshift 4 (When this creature dies, you may return up to two target Spirit cards with converted mana cost 4 or less from your graveyard to your hand.)
  this.addAbility(new SoulshiftAbility(4));
  this.addAbility(new SoulshiftAbility(4));
}
origin: magefree/mage

public KamiOfEmptyGraves(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(1);
  this.addAbility(new SoulshiftAbility(3));
}
origin: magefree/mage

public NightsoilKami(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(6);
  this.toughness = new MageInt(4);
  this.addAbility(new SoulshiftAbility(5));
}
origin: magefree/mage

public ThousandLeggedKami(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{6}{G}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  this.addAbility(new SoulshiftAbility(7));
}
origin: magefree/mage

public PromisedKannushi(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.DRUID);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  this.addAbility(new SoulshiftAbility(7));
}
origin: magefree/mage

public HarbingerOfSpring(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Protection from non-Spirit creatures
  this.addAbility(new ProtectionAbility(filter));
  // Soulshift 4
  this.addAbility(new SoulshiftAbility(4));
}
origin: magefree/mage

public ToriiWatchward(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{W}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  this.addAbility(VigilanceAbility.getInstance());
  this.addAbility(new SoulshiftAbility(4));
}
origin: magefree/mage

public CrawlingFilth(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(FearAbility.getInstance());
  this.addAbility(new SoulshiftAbility(5));
}
origin: magefree/mage

public VenerableKumo(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  this.addAbility(ReachAbility.getInstance());
  this.addAbility(new SoulshiftAbility(4));
}
origin: magefree/mage

public GibberingKami(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(new SoulshiftAbility(3));
}
origin: magefree/mage

public BodyOfJukai(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{7}{G}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(8);
  this.toughness = new MageInt(5);
  this.addAbility(TrampleAbility.getInstance());
  this.addAbility(new SoulshiftAbility(8));
}
origin: magefree/mage

public HundredTalonKami (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{W}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(new SoulshiftAbility(4));
}
origin: magefree/mage

public KamiOfLunacy(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(1);
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(new SoulshiftAbility(5));
}
origin: magefree/mage

public VineKami(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{6}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Menace (This creature can't be blocked except by two or more creatures.)
  this.addAbility(new MenaceAbility());
  this.addAbility(new SoulshiftAbility(6));
}
origin: magefree/mage

public KamiOfTheHonoredDead(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{W}{W}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(5);
  // Flying  
  this.addAbility(FlyingAbility.getInstance());
  // Whenever Kami of the Honored Dead is dealt damage, you gain that much life.
  this.addAbility(new KamiOfTheHonoredDeadTriggeredAbility());
  // Soulshift 6 (When this creature dies, you may return target Spirit card with converted mana cost 6 or less from your graveyard to your hand.)
  this.addAbility(new SoulshiftAbility(6));
}
origin: magefree/mage

public KamiOfThePalaceFields(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{W}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(FirstStrikeAbility.getInstance());
  this.addAbility(new SoulshiftAbility(5));
}
origin: magefree/mage

public ElderPineOfJukai(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Whenever you cast a Spirit or Arcane spell, reveal the top three cards of your library. Put all land cards revealed this way into your hand and the rest on the bottom of your library in any order.
  this.addAbility(new SpellCastControllerTriggeredAbility(new RevealLibraryPutIntoHandEffect(3, new FilterLandCard(), Zone.LIBRARY), StaticFilters.SPIRIT_OR_ARCANE_CARD, false));
  // Soulshift 2
  this.addAbility(new SoulshiftAbility(2));
}
origin: magefree/mage

public KamiOfTheTendedGarden(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // At the beginning of your upkeep, sacrifice Kami of the Tended Garden unless you pay {G}.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ColoredManaCost(ColoredManaSymbol.G)), TargetController.YOU, false));
  this.addAbility(new SoulshiftAbility(3));
}
mage.abilities.keywordSoulshiftAbility

Javadoc

702.45. Soulshift 702.45a Soulshift is a triggered ability. “Soulshift N” means “When this permanent is put into a graveyard from play, you may return target Spirit card with converted mana cost N or less from your graveyard to your hand.” 702.45b If a permanent has multiple instances of soulshift, each triggers separately. The soulshift number tells you the maximum converted mana cost of the Spirit card you can target. You choose whether or not to return the targeted creature card when the ability resolves.

Most used methods

  • <init>
  • addTarget
  • getTargets

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • 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