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

    • Reactive rest calls using spring rest template
    • getExternalFilesDir (Context)
    • onRequestPermissionsResult (Fragment)
    • findViewById (Activity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • MessageFormat (java.text)
      Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • 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