congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CantBeTargetedAllEffect
Code IndexAdd Tabnine to your IDE (free)

How to use
CantBeTargetedAllEffect
in
mage.abilities.effects.common

Best Java code snippets using mage.abilities.effects.common.CantBeTargetedAllEffect (Showing top 5 results out of 315)

origin: magefree/mage

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

public CantBeTargetedAllEffect(FilterPermanent filterTarget, FilterObject filterSource, Duration duration) {
  super(duration, Outcome.Benefit);
  this.filterTarget = filterTarget;
  this.filterSource = filterSource;
  setText();
}
origin: magefree/mage

public SpellbaneCentaur(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.CENTAUR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Creatures you control can't be the targets of blue spells or abilities from blue sources.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new CantBeTargetedAllEffect(new FilterControlledCreaturePermanent("Creatures you control"),
          filter, Duration.WhileOnBattlefield)));
}
origin: magefree/mage

public DenseFoliage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}");
  // Creatures can't be the targets of spells.
  CantBeTargetedAllEffect cantTargetEffect = new CantBeTargetedAllEffect(StaticFilters.FILTER_PERMANENT_CREATURES, new FilterSpell("spells"), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, cantTargetEffect));
}
origin: magefree/mage

public AutumnsVeil(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{G}");
  // Spells you control can't be countered by blue or black spells this turn
  this.getSpellAbility().addEffect(new CantBeCounteredControlledEffect(filterTarget1, filterSource, Duration.EndOfTurn));
  // and creatures you control can't be the targets of blue or black spells this turn.
  this.getSpellAbility().addEffect(new CantBeTargetedAllEffect(filterTarget2, filterSource, Duration.EndOfTurn));
}
mage.abilities.effects.commonCantBeTargetedAllEffect

Most used methods

  • <init>
  • setText

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • 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