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

How to use
CantBeTargetedCardsGraveyardsEffect
in
mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common.CantBeTargetedCardsGraveyardsEffect (Showing top 4 results out of 315)

origin: magefree/mage

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

public GroundSeal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}");
  // When Ground Seal enters the battlefield, draw a card.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
  // Cards in graveyards can't be the targets of spells or abilities.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeTargetedCardsGraveyardsEffect()));
}
origin: magefree/mage

public SilentGravestone(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // Cards in graveyards can't be the targets of spells or abilities.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeTargetedCardsGraveyardsEffect()));
  // {4}, {t}: Exile Silent Gravestone and all cards from all graveyards. Draw a card.
  Ability ability = new SimpleActivatedAbility(new ExileSourceEffect(), new GenericManaCost(4));
  ability.addCost(new TapSourceCost());
  ability.addEffect(new ExileGraveyardAllPlayersEffect().setText("and all cards from all graveyards"));
  ability.addEffect(new DrawCardSourceControllerEffect(1));
  this.addAbility(ability);
}
origin: magefree/mage

public UnderworldCerberus(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{R}");
  this.subtype.add(SubType.HOUND);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Underworld Cerberus can't be blocked except by three or more creatures.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(3)));
  // Cards in graveyards can't be the targets of spells or abilities.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeTargetedCardsGraveyardsEffect()));
  // When Underworld Cerberus dies, exile it and each player returns all creature cards from their graveyard to their hand.
  Ability ability = new DiesTriggeredAbility(new ExileSourceEffect());
  ability.addEffect(new ReturnToHandFromGraveyardAllEffect(new FilterCreatureCard("creature cards")));
  this.addAbility(ability);
}
mage.abilities.effects.commonCantBeTargetedCardsGraveyardsEffect

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Reference (javax.naming)
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 25 Plugins for Webstorm
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