congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BoostAllEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.continuous.BoostAllEffect
constructor

Best Java code snippets using mage.abilities.effects.common.continuous.BoostAllEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public Crosswinds(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{G}");
  // Creatures with flying get -2/-0.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(-2, 0, Duration.WhileOnBattlefield, filter1, false)));
}
origin: magefree/mage

public BadMoon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{B}");
  // Black creatures get +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false)));
  
}
origin: magefree/mage

public ArmyOfAllah(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}{W}");
  // Attacking creatures get +2/+0 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(2, 0, Duration.EndOfTurn, filter, false));
}
origin: magefree/mage

public Nausea(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{B}");
  // All creatures get -1/-1 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-1, -1, Duration.EndOfTurn));
}
origin: magefree/mage

public HystericalBlindness(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{U}");
  // Creatures your opponents control get -4/-0 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-4, 0, Duration.EndOfTurn, filter, false));
}
origin: magefree/mage

public MarshGas(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{B}");
  // All creatures get -2/-0 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-2, 0, Duration.EndOfTurn));
}
origin: magefree/mage

public Magnify(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}");
  // All creatures get +1/+1 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(1, 1, Duration.EndOfTurn));
}
origin: magefree/mage

public DoomwakeGiant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT,CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.GIANT);
  this.power = new MageInt(4);
  this.toughness = new MageInt(6);
  // Constellation - When Doomwake Giant or another enchantment enters the battlefield under your control, creatures your opponents control get -1/-1 until end of turn.
  this.addAbility(new ConstellationAbility(new BoostAllEffect(-1,-1, Duration.EndOfTurn, filter, false)));
}
origin: magefree/mage

public BlaringCaptain(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
  this.subtype.add(SubType.AZRA);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Partner with Blaring Recruiter (When this creature enters the battlefield, target player may put Blaring Recruiter into their hand from their library, then shuffle.)
  this.addAbility(new PartnerWithAbility("Blaring Recruiter"));
  // Whenever Blaring Captain attacks, attacking Warriors get +1/+1 until end of turn.
  this.addAbility(new AttacksTriggeredAbility(new BoostAllEffect(1, 1, Duration.EndOfTurn, filter, false), false));
}
origin: magefree/mage

public MinisterOfPain(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // Exploit
  this.addAbility(new ExploitAbility());
  
  // When Minister of Pain explots a creature, creatures your opponents control get -1/-1 until end of turn.
  this.addAbility(new ExploitCreatureTriggeredAbility(new BoostAllEffect(-1,-1, Duration.EndOfTurn, filter, false), false));
  
}
origin: magefree/mage

public HellSwarm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{B}");
  // All creatures get -1/-0 until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(-1, 0, Duration.EndOfTurn, new FilterCreaturePermanent("All creatures"), false));
}
origin: magefree/mage

public SunkenCity(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}{U}");
  // At the beginning of your upkeep, sacrifice Sunken City unless you pay {U}{U}.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{U}{U}")), TargetController.YOU, false));
  // Blue creatures get +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false)));
}
origin: magefree/mage

public TelimTor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
  this.addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flanking
  this.addAbility(new FlankingAbility());
  // Whenever Telim'Tor attacks, all attacking creatures with flanking get +1/+1 until end of turn.
  this.addAbility(new AttacksTriggeredAbility(new BoostAllEffect(1, 1, Duration.EndOfTurn, filter, false), false));
}
origin: magefree/mage

public PendelhavenElder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: Each 1/1 creature you control gets +1/+2 until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 2, Duration.EndOfTurn, filter, false)
      .setText("Each 1/1 creature you control gets +1/+2 until end of turn."),
      new TapSourceCost()
  ));
}
origin: magefree/mage

public Thunderstaff(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
  // As long as Thunderstaff is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ThunderstaffPreventionEffect()));
  // {2}, {tap}: Attacking creatures get +1/+0 until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1,0,Duration.EndOfTurn, filter, false), new GenericManaCost(2));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public FieldMarshal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(FirstStrikeAbility.getInstance(), Duration.WhileOnBattlefield, filter, true)));
}
origin: magefree/mage

public OrcGeneral(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.ORC);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {tap}, Sacrifice another Orc or Goblin: Other Orc creatures get +1/+1 until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.EndOfTurn, filterOrc, true), new TapSourceCost());
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filterOrcOrGoblin)));
  this.addAbility(ability);
}
origin: magefree/mage

public Jihad(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{W}{W}{W}");
  // As Jihad enters the battlefield, choose a color and an opponent.
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseColorEffect(Outcome.Detriment)));
  this.addAbility(new AsEntersBattlefieldAbility(new ChooseOpponentEffect(Outcome.Detriment)));
  
  // White creatures get +2/+1 as long as the chosen player controls a nontoken permanent of the chosen color.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(new BoostAllEffect(2, 1, Duration.WhileOnBattlefield, filter, false), new JihadOpponentCondition(), "White creatures get +2/+1 as long as the chosen player controls a nontoken permanent of the chosen color.")));
  
  // When the chosen player controls no nontoken permanents of the chosen color, sacrifice Jihad.
  this.addAbility(new JihadTriggeredAbility(new SacrificeSourceEffect()));
}
origin: magefree/mage

public DinosaurStampede(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}");
  // Attacking creatures get +2/+0 until end of turn. Dinosaurs you control gain trample until end of turn.
  this.getSpellAbility().addEffect(new BoostAllEffect(2, 0, Duration.EndOfTurn, filter, false));
  Effect effect = new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, filter2);
  effect.setText("Dinosaurs you control gain trample until end of turn.");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public ToxicDeluge(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}");
  // As an additional cost to cast Toxic Deluge, pay X life.
  this.getSpellAbility().addCost(new PayVariableLifeCost(true));
  // All creatures get -X/-X until end of turn.
  DynamicValue xValue = new SignInversionDynamicValue(GetXValue.instance);
  this.getSpellAbility().addEffect(new BoostAllEffect(xValue, xValue, Duration.EndOfTurn, new FilterCreaturePermanent("All creatures"), false,
      null, true));
}
mage.abilities.effects.common.continuousBoostAllEffect<init>

Popular methods of BoostAllEffect

  • setText
  • apply
  • init
  • isCanKill
  • selectedByRuntimeData
    Overwrite this in effect that inherits from this
  • setRuntimeData
    Overwrite this in effect that inherits from this

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer alternatives
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