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

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

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

origin: magefree/mage

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

public DramaticEntrance(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{G}{G}");
  // You may put a green creature card from your hand onto the battlefield.
  this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(filter));
}
origin: magefree/mage

public GoblinLackey(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}");
  this.subtype.add(SubType.GOBLIN);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Goblin Lackey deals damage to a player, you may put a Goblin permanent card from your hand onto the battlefield.
  this.addAbility(new DealsDamageToAPlayerTriggeredAbility(new PutCardFromHandOntoBattlefieldEffect(filter), false));
}
origin: magefree/mage

public DragonArch(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{5}");
  // {2}, {T}: You may put a multicolored creature card from your hand onto the battlefield.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(filter),
    new ManaCostsImpl("{2}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public QuicksilverAmulet(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
  // {4}, {tap}: You may put a creature card from your hand onto the battlefield.
  SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
      new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_CREATURE_A),
      new ManaCostsImpl("{4}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public ElvishPioneer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.DRUID);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // When Elvish Pioneer enters the battlefield, you may put a basic land card from your hand onto the battlefield tapped.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_BASIC_LAND_A, false, true), false));
}
origin: magefree/mage

public BraidsConjurerAdept(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN, SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // At the beginning of each player's upkeep, that player may put an artifact, creature, or land card from their hand onto the battlefield.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(new PutCardFromHandOntoBattlefieldEffect(filter, true), TargetController.ANY, false));
}
origin: magefree/mage

public SkyshroudRanger(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}");
  this.subtype.add(SubType.ELF);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: You may put a land card from your hand onto the battlefield. Activate this ability only any time you could cast a sorcery.
  this.addAbility(new ActivateAsSorceryActivatedAbility(
      Zone.BATTLEFIELD,
      new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A), 
      new TapSourceCost()
  ));
}
origin: magefree/mage

public TerrainGenerator(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
  // {tap}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {2}, {T}: You may put a basic land card from your hand onto the battlefield tapped.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
      new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_BASIC_LAND_A, false, true), new ManaCostsImpl("{2}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

public LlanowarScout(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // {T}: You may put a land card from your hand onto the battlefield.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
      new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A), new TapSourceCost()));
}
origin: magefree/mage

public ThranTemporalGateway(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}");
  this.addSuperType(SuperType.LEGENDARY);
  // {4}, {t}: You may put a historic permanent card from your hand onto the battlefield. (Artifacts, legendaries, and Sagas are historic.)
  SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
      new PutCardFromHandOntoBattlefieldEffect(filter)
          .setText("You may put a historic permanent card from your hand onto the battlefield. "
              + "<i>(Artifacts, legendaries, and Sagas are historic.)</i>"),
      new ManaCostsImpl("{4}"));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    if (AddendumCondition.instance.apply(game, source)) {
      new PutCardFromHandOntoBattlefieldEffect(filter).apply(game, source);
    }
    return ExileSpellEffect.getInstance().apply(game, source);
  }
}
origin: magefree/mage

public BudokaGardener(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
  this.subtype.add(SubType.HUMAN, SubType.MONK);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  this.flipCard = true;
  this.flipCardName = "Dokai, Weaver of Life";
  // {T}: You may put a land card from your hand onto the battlefield. If you control ten or more lands, flip Budoka Gardener.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A), new TapSourceCost());
  ability.addEffect(new BudokaGardenerEffect());
  this.addAbility(ability);
}
origin: magefree/mage

public GrowthSpiral(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}{U}");
  // Draw a card. You may put a land card from your hand onto the battlefield.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
  this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A));
}
origin: magefree/mage

public BriarbridgePatrol(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}");
  this.subtype.add(SubType.HUMAN, SubType.WARRIOR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Briarbridge Patrol deals damage to one or more creatures, investigate (Create a colorless Clue artifact token with "2, Sacrifice this artifact: Draw a card.").
  this.addAbility(new DealsDamageToOneOrMoreCreaturesTriggeredAbility(new InvestigateEffect(), false, false, false));
  // At the beginning of each end step, if you sacrificed three or more Clues this turn, you may put a creature card from your hand onto the battlefield.
  this.addAbility(new BeginningOfEndStepTriggeredAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_CREATURE_A), TargetController.ANY,
      BriarbridgePatrolCondition.instance, true), new PermanentsSacrificedWatcher());
}
origin: magefree/mage

public LureOfPrey(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}{G}");
  // Cast Lure of Prey only if an opponent cast a creature spell this turn.
  this.addAbility(new SimpleStaticAbility(Zone.ALL, new LureOfPreyRestrictionEffect()));
  // You may put a green creature card from your hand onto the battlefield.
  this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(filter));
}
origin: magefree/mage

public MindwrackLiege(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U/R}{U/R}{U/R}");
  this.subtype.add(SubType.HORROR);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Other blue creatures you control get +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
  // Other red creatures you control get +1/+1.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter2, true)));
  // {UR}{UR}{UR}{UR}: You may put a blue or red creature card from your hand onto the battlefield.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(filter3), new ManaCostsImpl("{U/R}{U/R}{U/R}{U/R}")));
}
origin: magefree/mage

public BrokenBond(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
  // Destroy target artifact or enchantment. You may put a land card from your hand onto the battlefield.
  this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A));
}
origin: magefree/mage

public SwellOfGrowth(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
  // Target creature gets +2/+2 until end of turn. You may put a land card from your hand onto the battlefield.
  this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A));
}
origin: magefree/mage

public MasterTransmuter(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.ARTIFICER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // {U}, {tap}, Return an artifact you control to its owner's hand: You may put an artifact card from your hand onto the battlefield.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutCardFromHandOntoBattlefieldEffect(new FilterArtifactCard("an artifact card")), new ManaCostsImpl("{U}"));
  ability.addCost(new TapSourceCost());
  ability.addCost(new ReturnToHandChosenControlledPermanentCost(new TargetControlledPermanent(new FilterControlledArtifactPermanent("an artifact"))));
  this.addAbility(ability);
}
mage.abilities.effects.commonPutCardFromHandOntoBattlefieldEffect<init>

Popular methods of PutCardFromHandOntoBattlefieldEffect

  • apply
  • getTargetPointer
  • setText

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text 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