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

How to use
mage.abilities.effects.common.EntersBattlefieldWithXCountersEffect
constructor

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

origin: magefree/mage

public ChaliceOfTheVoid(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{X}{X}");
  // Chalice of the Void enters the battlefield with X charge counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
  // Whenever a player casts a spell with converted mana cost equal to the number of charge counters on Chalice of the Void, counter that spell.
  this.addAbility(new ChaliceOfTheVoidTriggeredAbility());
}
origin: magefree/mage

public EndlessOne(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}");
  this.subtype.add(SubType.ELDRAZI);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Endless One enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public IvyElemental(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Ivy Elemental enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public NimbusSwimmer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}{U}");
  this.subtype.add(SubType.LEVIATHAN);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Nimbus Swimmer enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public ShiftingWall(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{X}");
  this.subtype.add(SubType.WALL);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Defender
  this.addAbility(DefenderAbility.getInstance());
  // Shifting Wall enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public AstralCornucopia(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{X}{X}{X}");
  // Astral Cornucopia enters the battlefield with X charge counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
  // {T}: Choose a color. Add one mana of that color for each charge counter on Astral Cornucopia.
  this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, new AstralCornucopiaManaEffect(), new TapSourceCost()));
}
origin: magefree/mage

public GenesisHydra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{X}{G}{G}");
  this.subtype.add(SubType.PLANT);
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // When you cast Genesis Hydra, reveal the top X cards of your library. You may put a nonland permanent card with converted mana cost X or less from among them onto the battlefield. Then shuffle the rest into your library.
  this.addAbility(new CastSourceTriggeredAbility(new GenesisHydraPutOntoBattlefieldEffect(), false));
  // Genesis Hydra enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public LifebloodHydra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}{G}{G}");
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Trample
  this.addAbility(TrampleAbility.getInstance());
  // Lifeblood Hydra enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // When Lifeblood Hydra dies, you gain life and draw cards equal to its power.
  this.addAbility(new DiesTriggeredAbility(new LifebloodHydraEffect(), false));
}
origin: magefree/mage

public PhyrexianMarauder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{X}");
  this.subtype.add(SubType.CONSTRUCT);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Phyrexian Marauder enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // Phyrexian Marauder can't block.
  this.addAbility(new CantBlockAbility());
  // Phyrexian Marauder can't attack unless you pay {1} for each +1/+1 counter on it.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new PhyrexianMarauderCantAttackUnlessYouPayEffect()));
}
origin: magefree/mage

public QuarantineField(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{X}{X}{W}{W}");
  // Quarantine Field enters the battlefield with X isolation counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.ISOLATION.createInstance())));
  // When Quarantine Field enters the battlefield, for each isolation counter on it, exile up to one target nonland permanent an opponent controls until Quarantine Field leaves the battlefield.
  Ability ability = new EntersBattlefieldTriggeredAbility(new QuarantineFieldEffect(), false);
  ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
  ability.setTargetAdjuster(QuarantineFieldAdjuster.instance);
  this.addAbility(ability);
}
origin: magefree/mage

public ProteanHydra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}");
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Protean Hydra enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // If damage would be dealt to Protean Hydra, prevent that damage and remove that many +1/+1 counters from it.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ProteanHydraEffect2()));
  // Whenever a +1/+1 counter is removed from Protean Hydra, put two +1/+1 counters on it at the beginning of the next end step.
  this.addAbility(new ProteanHydraAbility());
}
origin: magefree/mage

public Krakilin(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Krakilin enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // {1}{G}: Regenerate Krakilin.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{G}")));
}
origin: magefree/mage

public VastwoodHydra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{G}{G}");
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Vastwood Hydra enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // When Vastwood Hydra dies, you may distribute a number of +1/+1 counters equal to the number of +1/+1 counters on Vastwood Hydra among any number of creatures you control.
  Ability ability = new DiesTriggeredAbility(new VastwoodHydraDistributeEffect(), true);
  ability.addTarget(new TargetCreaturePermanentAmount(new CountersSourceCount(CounterType.P1P1), filter));
  this.addAbility(ability);
}
origin: magefree/mage

public GrenzoDungeonWarden(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{X}{B}{R}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Grenzo, Dungeon Warden enters the battlefield with X +1/+1 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
  // {2}: Put the bottom card of your library into your graveyard. If it's a creature card with power less than or equal to Grenzo's power, put it onto the battlefield.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GrenzoDungeonWardenEffect(), new GenericManaCost(2)));
}
origin: magefree/mage

public SigilOfDistinction(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{X}");
  this.subtype.add(SubType.EQUIPMENT);
  // Sigil of Distinction enters the battlefield with X charge counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
  // Equipped creature gets +1/+1 for each charge counter on Sigil of Distinction.
  BoostEquippedEffect effect = new BoostEquippedEffect(new CountersSourceCount(CounterType.CHARGE), new CountersSourceCount(CounterType.CHARGE));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
  // Equip—Remove a charge counter from Sigil of Distinction.
  this.addAbility(new EquipAbility(Outcome.AddAbility, new RemoveCountersSourceCost(CounterType.CHARGE.createInstance())));
}
origin: magefree/mage

public Iceberg(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{X}{U}{U}");
  // Iceberg enters the battlefield with X ice counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.ICE.createInstance())));
  // {3}: Put an ice counter on Iceberg.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.ICE.createInstance(1)), new ManaCostsImpl("{3}")));
  // Remove an ice counter from Iceberg: Add {C}.
  this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(1), new RemoveCountersSourceCost(CounterType.ICE.createInstance(1))));
}
origin: magefree/mage

public BribersPurse(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{X}");
  // Briber's Purse enters the battlefield with X gem counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.GEM.createInstance())));
  // {1}, {T}, Remove a gem counter from Briber's Purse: Target creature can't attack or block this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantAttackBlockTargetEffect(Duration.EndOfTurn), new GenericManaCost(1));
  ability.addCost(new TapSourceCost());
  ability.addCost(new RemoveCountersSourceCost(CounterType.GEM.createInstance()));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public OrochiHatchery(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{X}{X}");
  // Orochi Hatchery enters the battlefield with X charge counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
  // {5}, {T}: Create a 1/1 green Snake creature token for each charge counter on Orochi Hatchery.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new SnakeToken(), new CountersSourceCount(CounterType.CHARGE)), new GenericManaCost(5));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public ManaBloom(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{X}{G}");
  // Mana Bloom enters the battlefield with X charge counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.CHARGE.createInstance())));
  // Remove a charge counter from Mana Bloom: Add one mana of any color. Activate this ability only once each turn.
  Ability ability = new ActivateOncePerTurnManaAbility(Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(), new RemoveCountersSourceCost(CounterType.CHARGE.createInstance()));
  this.addAbility(ability);
  // At the beginning of your upkeep, if Mana Bloom has no charge counters on it, return it to its owner's hand.
  TriggeredAbility triggeredAbility = new BeginningOfUpkeepTriggeredAbility(new ReturnToHandSourceEffect(true), TargetController.YOU, false);
  this.addAbility(new ConditionalInterveningIfTriggeredAbility(triggeredAbility, new SourceHasCounterCondition(CounterType.CHARGE, 0, 0), "At the beginning of your upkeep, if Mana Bloom has no charge counters on it, return it to its owner's hand."));
}
origin: magefree/mage

public BalduvianHydra(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{X}{R}{R}");
  this.subtype.add(SubType.HYDRA);
  this.power = new MageInt(0);
  this.toughness = new MageInt(1);
  // Balduvian Hydra enters the battlefield with X +1/+0 counters on it.
  this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P0.createInstance())));
  // Remove a +1/+0 counter from Balduvian Hydra: Prevent the next 1 damage that would be dealt to Balduvian Hydra this turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToSourceEffect(Duration.EndOfTurn, 1), new RemoveCountersSourceCost(CounterType.P1P0.createInstance())));
  // {R}{R}{R}: Put a +1/+0 counter on Balduvian Hydra. Activate this ability only during your upkeep.
  this.addAbility(new ConditionalActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P0.createInstance(1)), new ManaCostsImpl("{R}{R}{R}"), new IsStepCondition(PhaseStep.UPKEEP), null));
}
mage.abilities.effects.commonEntersBattlefieldWithXCountersEffect<init>

Popular methods of EntersBattlefieldWithXCountersEffect

  • apply
  • getValue

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
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