Tabnine Logo
CantBlockActivateAttachedEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

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

public Demotion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature can't block, and its activated abilities can't be activated.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockActivateAttachedEffect()));
     
}
origin: magefree/mage

public GelidShackles(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}");
  addSuperType(SuperType.SNOW);
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Enchanted creature can't block, and its activated abilities can't be activated.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockActivateAttachedEffect()));
  
  // {snow}: Enchanted creature gains defender until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(DefenderAbility.getInstance(),
    AttachmentType.AURA, Duration.EndOfTurn), new ManaCostsImpl("{S}")));        
}
mage.abilities.effects.common.combatCantBlockActivateAttachedEffect<init>

Popular methods of CantBlockActivateAttachedEffect

    Popular in Java

    • Running tasks concurrently on multiple threads
    • notifyDataSetChanged (ArrayAdapter)
    • setRequestProperty (URLConnection)
    • requestLocationUpdates (LocationManager)
    • BufferedWriter (java.io)
      Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
    • SecureRandom (java.security)
      This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • JOptionPane (javax.swing)
    • Table (org.hibernate.mapping)
      A relational table
    • Top Vim plugins
    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