@Override public ReturnToHandFromBattlefieldAllEffect copy() { return new ReturnToHandFromBattlefieldAllEffect(this); } }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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); }
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"))); }
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}"))); }
@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; }
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)); }
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); }
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())); }
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")); }
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))); }
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}"))); }
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}"))); }
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}"))); }
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}")); }