[LCC] Implement Wave Goodbye

This commit is contained in:
theelk801 2023-11-01 22:06:16 -04:00
parent 099a80f997
commit 3c12cfaa2a
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,41 @@
package mage.cards.w;
import mage.abilities.effects.common.ReturnToHandFromBattlefieldAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class WaveGoodbye extends CardImpl {
private static final FilterPermanent filter = new FilterCreaturePermanent();
static {
filter.add(Predicates.not(CounterType.P1P1.getPredicate()));
}
public WaveGoodbye(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}{U}");
// Return each creature without a +1/+1 counter on it to its owner's hand.
this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter)
.setText("return each creature without a +1/+1 counter on it to its owner's hand"));
}
private WaveGoodbye(final WaveGoodbye card) {
super(card);
}
@Override
public WaveGoodbye copy() {
return new WaveGoodbye(this);
}
}

View file

@ -40,6 +40,7 @@ public final class LostCavernsOfIxalanCommander extends ExpansionSet {
cards.add(new SetCardInfo("Strionic Resonator", 116, Rarity.RARE, mage.cards.s.StrionicResonator.class));
cards.add(new SetCardInfo("Temple Bell", 117, Rarity.RARE, mage.cards.t.TempleBell.class));
cards.add(new SetCardInfo("Thought Vessel", 118, Rarity.UNCOMMON, mage.cards.t.ThoughtVessel.class));
cards.add(new SetCardInfo("Wave Goodbye", 79, Rarity.RARE, mage.cards.w.WaveGoodbye.class));
cards.add(new SetCardInfo("Wedding Ring", 102, Rarity.MYTHIC, mage.cards.w.WeddingRing.class));
cards.add(new SetCardInfo("Whispersilk Cloak", 119, Rarity.UNCOMMON, mage.cards.w.WhispersilkCloak.class));
cards.add(new SetCardInfo("Worn Powerstone", 120, Rarity.UNCOMMON, mage.cards.w.WornPowerstone.class));