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

How to use
mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility
constructor

Best Java code snippets using mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public HatchingPlans(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
  // When Hatching Plans is put into a graveyard from the battlefield, draw three cards.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(3)));
}
origin: magefree/mage

public BroodOfCockroaches(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
  this.subtype.add(SubType.INSECT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // When Brood of Cockroaches is put into your graveyard from the battlefield,
  // at the beginning of the next end step,
  // you lose 1 life
  // and return Brood of Cockroaches to your hand.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new BroodOfCockroachesEffect(), false, true));
}
origin: magefree/mage

public IchorWellspring(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
  // When Ichor Wellspring enters the battlefield or is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public DunesOfTheDead(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  this.subtype.add(SubType.DESERT);
  // {T}: Add {C}.
  addAbility(new ColorlessManaAbility());
  // When Dunes of the Dead is put into a graveyard from the battlefield, create a 2/2 black Zombie creature token.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new CreateTokenEffect(new ZombieToken(), 1)));
}
origin: magefree/mage

public SpineOfIshSah(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{7}");
  // When Spine of Ish Sah enters the battlefield, destroy target permanent.        
  EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
  ability.addTarget(new TargetPermanent());
  this.addAbility(ability);
  
  // When Spine of Ish Sah is put into a graveyard from the battlefield, return Spine of Ish Sah to its owner's hand
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new ReturnToHandSourceEffect()));
}
origin: magefree/mage

public InducedAmnesia(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
  // When Induced Amnesia enters the battlefield, target player exiles all the cards in their hand face down, then draws that many cards.
  Ability ability = new EntersBattlefieldTriggeredAbility(new InducedAmnesiaExileEffect(), false);
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
  // When Induced Amnesia is put into a graveyard from the battlefield, return the exiled cards to their owner's hand.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new InducedAmnesiaReturnEffect()));
}
origin: magefree/mage

public GodsEyeGateToTheReikai(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  addSuperType(SuperType.LEGENDARY);
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // When Gods' Eye, Gate to the Reikai is put into a graveyard from the battlefield, create a 1/1 colorless Spirit creature token.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new CreateTokenEffect(new SpiritToken(), 1)));
}
origin: magefree/mage

public GoblinBoomKeg(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
  // At the beginning of your upkeep, sacrifice Goblin Boom Keg.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceEffect(), TargetController.YOU, false));
  // When Goblin Boom Keg is put into a graveyard from the battlefield, it deals 3 damage to any target.
  Ability ability = new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DamageTargetEffect(3, "it"));
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public FlagstonesOfTrokair(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  addSuperType(SuperType.LEGENDARY);
  // {tap}: Add {W}.
  this.addAbility(new WhiteManaAbility());
  // When Flagstones of Trokair is put into a graveyard from the battlefield, you may search your library for a Plains card and put it onto the battlefield tapped. If you do, shuffle your library.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(FILTER), true, false), true, false));
}
origin: magefree/mage

public ChromaticStar(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{1}");
  
  // {1}, {T}, Sacrifice Chromatic Star: Add one mana of any color.        
  Ability ability = new AnyColorManaAbility(new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
  
  // When Chromatic Star is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public ImplementOfExamination(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
  // {U}, Sacrifice Implement of Examination: Draw a card.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{U}"));
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
  // When Implement of Examination is put into a graveard from the battleifeld, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public ImplementOfImprovement(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // {W}, Sacrifice Implement of Improvement: You gain 2 life.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(2), new ManaCostsImpl("{W}"));
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
  // When Implement of Improvement is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public ImplementOfCombustion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // {R}, Sacrifice Implement of Combustion: It deals 1 damage to target player.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1, "It"), new ManaCostsImpl("{R}"));
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetPlayerOrPlaneswalker());
  this.addAbility(ability);
  // When Implement of Combustion is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public ServoSchematic(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
  // When Servo Schematic enters the battlefield or is put into a graveyard from the battlefield, create a 1/1 colorless Servo artifact creature token.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new ServoToken())));
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new CreateTokenEffect(new ServoToken())));
}
origin: magefree/mage

public ImplementOfMalice(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
  // {B}, Sacrifice Implement of Malice: Target player discards a card. Activate this ability only any time you could cast a sorcery.
  Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1),new ManaCostsImpl("{B}"));
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
  // When Implement of Malice is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public ImplementOfFerocity(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // {G}, Sacrifice Implement of Ferocity: Put a +1/+1 counter on target creature. Activate this ability only any time you could cast a sorcery.
  Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl("{G}"));
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  // When Implement of Ferocity is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public Terrarion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // Terrarion enters the battlefield tapped.
  this.addAbility(new EntersBattlefieldTappedAbility());
  // {2}, {T}, Sacrifice Terrarion: Add two mana in any combination of colors.
  Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new AddManaInAnyCombinationEffect(2), new GenericManaCost(2));
  ability.addCost(new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  this.addAbility(ability);
  // When Terrarion is put into a graveyard from the battlefield, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
}
origin: magefree/mage

public SpreadingAlgae(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{G}");
  this.subtype.add(SubType.AURA);
  // Enchant Swamp
  TargetPermanent auraTarget = new TargetPermanent(filter);
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // When enchanted land becomes tapped, destroy it.
  this.addAbility(new BecomesTappedAttachedTriggeredAbility(new DestroyAttachedToEffect("it"), "enchanted land"));
  // When Spreading Algae is put into a graveyard from the battlefield, return Spreading Algae to its owner's hand.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new ReturnToHandSourceEffect()));
}
origin: magefree/mage

public PanicSpellbomb(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // Tap, Sacrifice Panic Spellbomb: Target creature can't block this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  // When Panic Spellbomb is put into a graveyard from the battlefield, you may pay Red. If you do, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{R}")), false, false));
}
origin: magefree/mage

public CyclopeanTomb(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
  // {2}, {tap}: Put a mire counter on target non-Swamp land. That land is a Swamp for as long as it has a mire counter on it. Activate this ability only during your upkeep.
  Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.MIRE.createInstance()), new GenericManaCost(2), new IsStepCondition(PhaseStep.UPKEEP), "{2}, {T}: Put a mire counter on target non-Swamp land. That land is a Swamp for as long as it has a mire counter on it. Activate this ability only during your upkeep.");
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetLandPermanent(filter));
  ability.addEffect(new BecomeSwampEffect(Duration.Custom, false, true, SubType.SWAMP));
  this.addAbility(ability, new CyclopeanTombCounterWatcher());
  // When Cyclopean Tomb is put into a graveyard from the battlefield, at the beginning of each of your upkeeps for the rest of the game, remove all mire counters from a land that a mire counter was put onto with Cyclopean Tomb but that a mire counter has not been removed from with Cyclopean Tomb.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new CyclopeanTombCreateTriggeredEffect()));
}
mage.abilities.commonPutIntoGraveFromBattlefieldSourceTriggeredAbility<init>

Popular methods of PutIntoGraveFromBattlefieldSourceTriggeredAbility

  • checkTrigger
  • getSourceId
  • isControlledBy
  • setLeavesTheBattlefieldTrigger

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • 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