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

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

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

origin: magefree/mage

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

public InvasionPlans(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{R}");
  // All creatures block each turn if able. 
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BlocksIfAbleAllEffect(FILTER_PERMANENT_CREATURES)));
  // The attacking player chooses how each creature blocks each turn.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new InvasionPlansEffect()));
}
origin: magefree/mage

public GrandMelee(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}");
  // All creatures attack each turn if able.
  Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new AttacksIfAbleAllEffect(FILTER_PERMANENT_CREATURES));
  this.addAbility(ability, new AttackedThisTurnWatcher());
  // All creatures block each turn if able.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BlocksIfAbleAllEffect(FILTER_PERMANENT_CREATURES)));
}
origin: magefree/mage

public BrutalHordechief(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.ORC, SubType.WARRIOR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever a creature you control attacks, defending player loses 1 life and you gain 1 life.
  this.addAbility(new BrutalHordechiefTriggeredAbility());
  // {3}{R/W}{R/W}: Creatures your opponents control block this turn if able, and you choose how those creatures block.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlocksIfAbleAllEffect(filter, Duration.EndOfTurn), new ManaCostsImpl("{3}{R/W}{R/W}"));
  ability.addEffect(new BrutalHordechiefChooseBlockersEffect());
  ability.addWatcher(new ChooseBlockersRedundancyWatcher());
  ability.addEffect(new ChooseBlockersRedundancyWatcherIncrementEffect());
  this.addAbility(ability);
}
origin: magefree/mage

public PredatoryRampage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{G}{G}");
  // Creatures you control get +3/+3 until end of turn.
  this.getSpellAbility().addEffect(new BoostControlledEffect(3, 3, Duration.EndOfTurn));
  // Each creature your opponents control blocks this turn if able.
  this.getSpellAbility().addEffect(new BlocksIfAbleAllEffect(filter, Duration.EndOfTurn));
  this.getSpellAbility().addEffect(new GainAbilityAllEffect(BlocksThisTurnMarkerAbility.getInstance(), Duration.EndOfTurn, filter, ""));
}
mage.abilities.effects.common.combatBlocksIfAbleAllEffect

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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