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

How to use
mage.abilities.dynamicvalue.common.BlockedCreatureCount
constructor

Best Java code snippets using mage.abilities.dynamicvalue.common.BlockedCreatureCount.<init> (Showing top 10 results out of 315)

origin: magefree/mage

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

public RabidElephant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.ELEPHANT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(4);
  // Whenever Rabid Elephant becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
  DynamicValue value = new MultipliedValue(new BlockedCreatureCount(), 2);
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +2/+2 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public GangOfElk(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{G}");
  this.subtype.add(SubType.ELK);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // Whenever Gang of Elk becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
  DynamicValue value = new MultipliedValue(new BlockedCreatureCount(), 2);
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +2/+2 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public BerserkMurlodont(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever a Beast becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +1/+1 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedAllTriggeredAbility(effect, false, filter, false));
}
origin: magefree/mage

public SparringGolem(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{3}");
  this.subtype.add(SubType.GOLEM);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Sparring Golem becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +1/+1 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public ElvishBerserker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.BERSERKER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Elvish Berserker becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +1/+1 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public JungleWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Whenever Jungle Wurm becomes blocked, it gets -1/-1 until end of turn for each creature blocking it beyond the first.
  BlockedCreatureCount blockedCreatureCount = new BlockedCreatureCount("each creature blocking it beyond the first", true);
  DynamicValue value = new MultipliedValue(blockedCreatureCount, -1);
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets -1/-1 until end of turn for each creature blocking it beyond the first");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public JohtullWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Whenever Johtull Wurm becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first.
  DynamicValue blockedCreatureCount = new BlockedCreatureCount("each creature blocking it beyond the first", true);
  Effect effect = new BoostSourceEffect(new MultipliedValue(blockedCreatureCount, -2), new MultipliedValue(blockedCreatureCount, -1), Duration.EndOfTurn, true);
  effect.setText("it gets -2/-1 until end of turn for each creature blocking it beyond the first");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public BeastmastersMagemark(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Creatures you control that are enchanted get +1/+1.
  ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false));
  this.addAbility(ability);
  // Whenever a creature you control that's enchanted becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +1/+1 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedAllTriggeredAbility(effect, false, filter, false));
}
origin: magefree/mage

public AsajjVentress(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{B}{R}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.DATHOMIRIAN);
  this.subtype.add(SubType.SITH);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Double Strike
  this.addAbility(DoubleStrikeAbility.getInstance());
  // When Asajj Ventress becomes blocked, she gets +1/+1 for each creature blocking her until end of turn.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("she gets +1/+1 for each creature blocking her until end of turn");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
  // <i>Hate</i> &mdash; Whenever Asajj Ventress attacks, if an opponent lost life from a source other than combat damage this turn, target creature blocks this turn if able.
  Ability ability = new ConditionalInterveningIfTriggeredAbility(
      new AttacksTriggeredAbility(new BlocksIfAbleTargetEffect(Duration.EndOfTurn), false),
      HateCondition.instance,
      "<i>Hate</i> &mdash; Whenever Asajj Ventress attacks, if an opponent lost life from a source other than combat damage this turn, target creature blocks this turn if able");
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability, new LifeLossOtherFromCombatWatcher());
}
mage.abilities.dynamicvalue.commonBlockedCreatureCount<init>

Popular methods of BlockedCreatureCount

    Popular in Java

    • Finding current android device location
    • findViewById (Activity)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • startActivity (Activity)
    • Kernel (java.awt.image)
    • FileOutputStream (java.io)
      An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
    • Executors (java.util.concurrent)
      Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top PhpStorm 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