congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
InvestigateEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.keyword.InvestigateEffect
constructor

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

origin: magefree/mage

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

public TrailOfEvidence(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{U}");
  // Whenever you cast an instant or sorcery spell, investigate.
  this.addAbility(new SpellCastControllerTriggeredAbility(new InvestigateEffect(), filter, false));
}
origin: magefree/mage

public UlvenwaldMysteries(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
  // Whenever a nontoken creature you control dies, investigate. <i>(Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.")</i>
  this.addAbility(new DiesCreatureTriggeredAbility(new InvestigateEffect(), false, filter));
  // Whenever you sacrifice a Clue, create a 1/1 white Human Soldier creature token.
  this.addAbility(new UlvenwaldMysteriesTriggeredAbility());
}
origin: magefree/mage

public BywayCourier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.HUMAN, SubType.SCOUT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // When Byway Courier dies, investigate.
  this.addAbility(new DiesTriggeredAbility(new InvestigateEffect(), false));
}
origin: magefree/mage

public DrownyardExplorers(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  // When Drownyard Explorers enters the battlefield, investigate.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new InvestigateEffect(), false));
}
origin: magefree/mage

public ThrabenInspector(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // When Thraben Inspector enters the battlefield, investigate.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new InvestigateEffect(), false));
}
origin: magefree/mage

public FleetingMemories(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{U}");
  // When Fleeting Memories enters the battlefield, investigate.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new InvestigateEffect(), false));
  // Whenever you sacrifice a Clue, target player puts the top three cards of their graveyard into their graveyard.
  Ability ability = new FleetingMemoriesTriggeredAbility();
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
}
origin: magefree/mage

public BygoneBishop(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
  this.subtype.add(SubType.SPIRIT, SubType.CLERIC);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Whenever you cast a creature spell with converted mana cost 3 or less, investigate.
  // (Put a colorless Clue artifact token onto the battlefield with "{2}, Sacrifice this artifact: Draw a card.")
  this.addAbility(new SpellCastControllerTriggeredAbility(new InvestigateEffect(), filterSpell, false));
}
origin: magefree/mage

public OngoingInvestigation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
  // Whenever one or more creatures you control deal combat damage to a player, investigate.
  this.addAbility(new ControlledCreaturesDealCombatDamagePlayerTriggeredAbility(new InvestigateEffect()));
  // {1}{G}, Exile a creature card from your graveyard: Investigate. You gain 2 life.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new InvestigateEffect(), new ManaCostsImpl("{1}{G}"));
  ability.addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(new FilterCreatureCard("a creature card from your graveyard"))));
  ability.addEffect(new GainLifeEffect(2));
  this.addAbility(ability);
}
origin: magefree/mage

public MagnifyingGlass(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
  // {T}: Add {C}.
  this.addAbility(new ColorlessManaAbility());
  // {4}, {T}: Investigate.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new InvestigateEffect(), new GenericManaCost(4));
  ability.addCost(new TapSourceCost());
  this.addAbility(ability);
}
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 TirelessTracker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Whenever a land enters the battlefield under your control, investigate. <i>(Create a colorless Clue artifact token with "{2}, Sacrifice this artifact: Draw a card.")</i>
  this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new InvestigateEffect(), new FilterControlledLandPermanent("a land"), false, null, true));
  // Whenever you sacrifice a Clue, put a +1/+1 counter on Tireless Tracker.
  this.addAbility(new TirelessTrackerTriggeredAbility());
}
origin: magefree/mage

public HumbleTheBrute(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{4}{W}");
  // Destroy target creature with power 4 or greater.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
  // Investigate.
  this.getSpellAbility().addEffect(new InvestigateEffect());
}
origin: magefree/mage

public TamiyosJournal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
  addSuperType(SuperType.LEGENDARY);
  // At the beginning of your upkeep, investigate (Create a colorless Clue artifact token with \"{2}, Sacrifice this artifact: Draw a card.\").
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new InvestigateEffect(), TargetController.YOU, false));
  // {T}, Sacrifice three Clues: Search your library for a card and put that card into your hand. Then shuffle your library.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SearchLibraryPutInHandEffect(new TargetCardInLibrary(), false, true), new TapSourceCost());
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(3, 3, filter, false)));
  this.addAbility(ability);
}
origin: magefree/mage

public JacesScrutiny(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}");
  // Target creature gets -4/-0 until end of turn.
  getSpellAbility().addEffect(new BoostTargetEffect(-4, -0, Duration.EndOfTurn));
  getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Investigate
  getSpellAbility().addEffect(new InvestigateEffect());
}
origin: magefree/mage

public ExposeEvil(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}");
  // Tap up to two target creatures.
  this.getSpellAbility().addEffect(new TapTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
  // Investigate (Create a colorless Clue artifact token with \"{2}, Sacrifice this artifact: Draw a card.\")
  this.getSpellAbility().addEffect(new InvestigateEffect());
}
origin: magefree/mage

public GoneMissing(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{4}{U}");
  // Put target permanent on top of its owner's library.
  this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
  this.getSpellAbility().addTarget(new TargetPermanent());
  // Investigate.
  this.getSpellAbility().addEffect(new InvestigateEffect());
}
origin: magefree/mage

public RootOut(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{G}");
  // Destroy target artifact or enchantment.
  this.getSpellAbility().addEffect(new DestroyTargetEffect());
  this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
  // Investigate.
  Effect effect = new InvestigateEffect();
  effect.setText("<br>Investigate. <i>(Create a colorless Clue artifact token with \"{2}, Sacrifice this artifact: Draw a card.\")</i>");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public PressForAnswers(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{U}");
  // Tap target creature. It doesn't untap during its controller's next untap step.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new TapTargetEffect());
  this.getSpellAbility().addEffect(new DontUntapInControllersNextUntapStepTargetEffect("It"));
  // Investigate. (Create a colorless Clue artifact token with "2, Sacrifice this artifact: Draw a card.")
  Effect effect = new InvestigateEffect();
  effect.setText("<br>Investigate. (Create a colorless Clue artifact token with \"2, Sacrifice this artifact: Draw a card.\")");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public ConfrontTheUnknown(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}");
  // Investigate, then target creature gets +1/+1 until end of turn for each Clue you control.
  Effect effect = new InvestigateEffect();
  effect.setText("Investigate");
  getSpellAbility().addEffect(effect);
  effect = new BoostTargetEffect(new PermanentsOnBattlefieldCount(filter), new PermanentsOnBattlefieldCount(filter), Duration.EndOfTurn, true);
  effect.setText(", then target creature gets +1/+1 until end of turn for each Clue you control. <i>(To investigate, "
      + "create a colorless Clue artifact token with \"{2}, Sacrifice this artifact: Draw a card.\")</i>");
  getSpellAbility().addEffect(effect);
  getSpellAbility().addTarget(new TargetCreaturePermanent());
}
mage.abilities.effects.keywordInvestigateEffect<init>

Popular methods of InvestigateEffect

    Popular in Java

    • Updating database using SQL prepared statement
    • notifyDataSetChanged (ArrayAdapter)
    • onCreateOptionsMenu (Activity)
    • runOnUiThread (Activity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • FileOutputStream (java.io)
      An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • Top plugins for WebStorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now