congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BlocksIfAbleAttachedEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

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

public Spirespine(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{2}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(4);
  this.toughness = new MageInt(1);
  // Bestow 4G (If you cast this card for its bestow cost, it's an Aura spell with enchant creature. It becomes a creature again if it's not attached to a creature.)
  this.addAbility(new BestowAbility(this, "{4}{G}"));
  // Spirespine blocks each turn if able.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BlocksIfAbleSourceEffect(Duration.WhileOnBattlefield)));
  // Enchanted creature gets +4/+1 and blocks each combat if able.
  Effect effect = new BoostEnchantedEffect(4, 1, Duration.WhileOnBattlefield);
  effect.setText("Enchanted creature gets +4/+1");
  Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
  effect = new BlocksIfAbleAttachedEffect(Duration.WhileOnBattlefield, AttachmentType.AURA);
  effect.setText("and blocks each combat if able");
  ability.addEffect(effect);
  this.addAbility(ability);
}
mage.abilities.effects.common.combatBlocksIfAbleAttachedEffect<init>

Popular methods of BlocksIfAbleAttachedEffect

    Popular in Java

    • Finding current android device location
    • compareTo (BigDecimal)
    • getResourceAsStream (ClassLoader)
    • getExternalFilesDir (Context)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • Callable (java.util.concurrent)
      A task that returns a result and may throw an exception. Implementors define a single method with no
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top 12 Jupyter Notebook Extensions
    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