congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CantAttackYouOrPlaneswalkerAllEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

  @Override
  public CantAttackYouOrPlaneswalkerAllEffect copy() {
    return new CantAttackYouOrPlaneswalkerAllEffect(this);
  }
}
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));
}
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
  ));
}
mage.abilities.effects.common.combatCantAttackYouOrPlaneswalkerAllEffect<init>

Popular methods of CantAttackYouOrPlaneswalkerAllEffect

  • setText

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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