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

How to use
CantAttackYouOrPlaneswalkerAllEffect
in
mage.abilities.effects.common.combat

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

origin: magefree/mage

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

public VarchildBetrayerOfKjeldor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Varchild, Betrayer of Kjeldor deals combat damage to a player, that player creates that many 1/1 red Survivor creature tokens.
  this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
      new VarchildBetrayerOfKjeldorEffect(), false, true
  ));
  // Survivors your opponents control can't block, and they can't attack you or a planeswalker you control.
  Ability ability = new SimpleStaticAbility(
      Zone.BATTLEFIELD,
      new CantBlockAllEffect(
          filter1, Duration.WhileOnBattlefield
      )
  );
  ability.addEffect(new CantAttackYouOrPlaneswalkerAllEffect(
      Duration.WhileOnBattlefield, filter1
  ).setText("and can't attack you or a planeswalker you control"));
  this.addAbility(ability);
  // When Varchild leaves the battlefield, gain control of all Survivors.
  this.addAbility(new LeavesBattlefieldTriggeredAbility(
      new GainControlAllEffect(Duration.Custom, filter2), false
  ));
}
origin: magefree/mage

public RiteOfTheRagingStorm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}{R}");
  // Creatures named Lightning Rager can't attack you or planeswalkers you control.
  Effect effect = new CantAttackYouOrPlaneswalkerAllEffect(Duration.WhileOnBattlefield, filter);
  effect.setText("Creatures named Lightning Rager can't attack you or planeswalkers you control");
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
  // At the beginning of each player's upkeep, that player creates a 5/1 red Elemental creature token named Lightning Rager.
  // It has trample, haste, and "At the beginning of the end step, sacrifice this creature."
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new RiteOfTheRagingStormEffect(), TargetController.ANY, false));
}
origin: magefree/mage

public SandwurmConvergence(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{6}{G}{G}");
  // Creatures with flying can't attack you or planeswalkers you control.
  Effect effect = new CantAttackYouOrPlaneswalkerAllEffect(Duration.WhileOnBattlefield, filter);
  effect.setText("Creatures with flying can't attack you or planeswalkers you control");
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
  // At the beginning of your end step, create a 5/5 green Wurm creature token.
  this.addAbility(new BeginningOfEndStepTriggeredAbility(new CreateTokenEffect(new WurmToken3()), TargetController.YOU, false));
}
mage.abilities.effects.common.combatCantAttackYouOrPlaneswalkerAllEffect

Most used methods

  • <init>
  • setText

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Permission (java.security)
    Legacy security code; do not use.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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