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

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

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

origin: magefree/mage

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

public Inundate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{U}{U}{U}");
  // Return all nonblue creatures to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter));
  
}
origin: magefree/mage

public ReduceToDreams(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{U}{U}");
  // Return all artifacts and enchantments to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
}
origin: magefree/mage

public Upheaval(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}{U}");
  // Return all permanents to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(StaticFilters.FILTER_PERMANENT));
}
origin: magefree/mage

public Sunder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{U}{U}");
  // Return all lands to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(StaticFilters.FILTER_LANDS));
}
origin: magefree/mage

public Evacuation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}{U}");
  // Return all creatures to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(FILTER_PERMANENT_CREATURES));
}
origin: magefree/mage

public Hibernation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{U}");
  // Return all green permanents to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter));
}
origin: magefree/mage

public WhelmingWave(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{U}{U}");
  // Return all creatures to their owners' hands except for Krakens, Leviathans, Octopuses and Serpents.
  Effect effect = new ReturnToHandFromBattlefieldAllEffect(filter);
  effect.setText("Return all creatures to their owners' hands except for Krakens, Leviathans, Octopuses and Serpents");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public Aetherize(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{U}");
  // Return all attacking creatures to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterAttackingCreature("attacking creatures")));
}
origin: magefree/mage

public KederektLeviathan(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{6}{U}{U}");
  this.subtype.add(SubType.LEVIATHAN);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // When Kederekt Leviathan enters the battlefield, return all other nonland permanents to their owners' hands.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandFromBattlefieldAllEffect(filter)));
  // Unearth {6}{U}
  this.addAbility(new UnearthAbility(new ManaCostsImpl("{6}{U}")));
}
origin: magefree/mage

@Override
public boolean apply(Game game, Ability source) {
  if (targetPointer.getFirst(game, source) != null) {
    FilterPermanent filter = new FilterArtifactPermanent();
    filter.add(new OwnerIdPredicate(targetPointer.getFirst(game, source)));
    return new ReturnToHandFromBattlefieldAllEffect(filter).apply(game, source);
  }
  return false;
}
origin: magefree/mage

public DenizenOfTheDeep(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{6}{U}{U}");
  this.subtype.add(SubType.SERPENT);
  this.power = new MageInt(11);
  this.toughness = new MageInt(11);
  // When Denizen of the Deep enters the battlefield, return each other creature you control to its owner's hand.
  Effect effect = new ReturnToHandFromBattlefieldAllEffect(filter);
  effect.setText("return each other creature you control to its owner's hand");
  this.addAbility(new EntersBattlefieldTriggeredAbility(effect));
}
origin: magefree/mage

public PartTheVeil(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{3}{U}");
  this.subtype.add(SubType.ARCANE);
  
  // Return all creatures you control to their owner's hand.
  Effect effect = new ReturnToHandFromBattlefieldAllEffect(new FilterControlledCreaturePermanent());
  effect.setText("Return all creatures you control to their owner's hand");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public CoastalBreach(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{6}{U}");
  // Undaunted
  this.addAbility(new UndauntedAbility());
  // Return all nonland permanents to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterNonlandPermanent()));
}
origin: magefree/mage

public RemoveEnchantments(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{W}");
  // Return to your hand all enchantments you both own and control, all Auras you own attached to permanents you control, and all Auras you own attached to attacking creatures your opponents control. Then destroy all other enchantments you control, all other Auras attached to permanents you control, and all other Auras attached to attacking creatures your opponents control.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter1).setText("Return to your hand all enchantments you both own and control,"));
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter2).setText(" all Auras you own attached to permanents you control"));
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter3).setText("and all Auras you own attached to attacking creatures your opponents control"));
  this.getSpellAbility().addEffect(new DestroyAllEffect(filter4).setText("Then destroy all other enchantments you control,"));
  this.getSpellAbility().addEffect(new DestroyAllEffect(filter5).setText(" all other Auras attached to permanents you control"));
  this.getSpellAbility().addEffect(new DestroyAllEffect(filter6).setText("and all other Auras attached to attacking creatures your opponents control"));
}
origin: magefree/mage

public AethersquallAncient(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{U}{U}");
  this.subtype.add(SubType.LEVIATHAN);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // At the beginning of your upkeep, you get {E}{E}{E}.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(new GetEnergyCountersControllerEffect(3), TargetController.YOU, false));
  // Pay {E}{E}{E}{E}{E}{E}{E}{E}: Return all other creatures to their owners' hands. Activate this ability only any time you could cast a sorcery.
  this.addAbility(new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandFromBattlefieldAllEffect(filter), new PayEnergyCost(8)));
}
origin: magefree/mage

public DevastationTide(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}{U}");
  // Return all nonland permanents to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterNonlandPermanent("nonland permanents")));
  // Miracle {1}{U}
  this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{1}{U}")));
}
origin: magefree/mage

public Rebuild(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{U}");
  // Return all artifacts to their owners' hands.
  this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterArtifactPermanent("artifacts")));
  // Cycling {2}
  this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
}
origin: magefree/mage

public CyclonicRift(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
  // Return target nonland permanent you don't control to its owner's hand.
  this.getSpellAbility().addTarget(new TargetNonlandPermanent(filter));
  this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  // Overload {6}{U} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
  Effect effect = new ReturnToHandFromBattlefieldAllEffect(filter);
  effect.setText("Return each nonland permanent you don't control to its owner's hand");
  this.addAbility(new OverloadAbility(this, effect, new ManaCostsImpl("{6}{U}")));
}
origin: magefree/mage

public CrushOfTentacles(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}{U}");
  // Return all nonland permanents to their owners' hands. If Crush of Tentacles surge cost was paid, create an 8/8 blue Octopus creature token.
  getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(new FilterNonlandPermanent("nonland permanents")));
  Effect effect = new ConditionalOneShotEffect(new CreateTokenEffect(new CrushOfTentaclesToken()), SurgedCondition.instance);
  effect.setText("If {this} surge cost was paid, create an 8/8 blue Octopus creature token");
  getSpellAbility().addEffect(effect);
  // Surge {3}{U}{U} (You may cast this spell for its surge cost if you or a teammate has cast another spell this turn)
  addAbility(new SurgeAbility(this, "{3}{U}{U}"));
}
mage.abilities.effects.commonReturnToHandFromBattlefieldAllEffect<init>

Popular methods of ReturnToHandFromBattlefieldAllEffect

  • apply
  • setText

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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