[WOE] Implement Freeze in Place

This commit is contained in:
theelk801 2023-08-21 20:55:01 -04:00
parent 408d840263
commit 04f36dfd5d
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.f;
import mage.abilities.effects.common.TapTargetEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.abilities.effects.keyword.ScryEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.counters.CounterType;
import mage.target.common.TargetOpponentsCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class FreezeInPlace extends CardImpl {
public FreezeInPlace(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}");
// Tap target creature an opponent controls and put three stun counters on it. Scry 2.
this.getSpellAbility().addEffect(new TapTargetEffect());
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.STUN.createInstance(3))
.setText("and put three stun counters on it"));
this.getSpellAbility().addEffect(new ScryEffect(2));
this.getSpellAbility().addTarget(new TargetOpponentsCreaturePermanent());
}
private FreezeInPlace(final FreezeInPlace card) {
super(card);
}
@Override
public FreezeInPlace copy() {
return new FreezeInPlace(this);
}
}

View file

@ -55,6 +55,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Faunsbane Troll", 203, Rarity.RARE, mage.cards.f.FaunsbaneTroll.class));
cards.add(new SetCardInfo("Flick a Coin", 128, Rarity.COMMON, mage.cards.f.FlickACoin.class));
cards.add(new SetCardInfo("Forest", 266, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Freeze in Place", 50, Rarity.COMMON, mage.cards.f.FreezeInPlace.class));
cards.add(new SetCardInfo("Frolicking Familiar", 226, Rarity.UNCOMMON, mage.cards.f.FrolickingFamiliar.class));
cards.add(new SetCardInfo("Gadwick's First Duel", 51, Rarity.UNCOMMON, mage.cards.g.GadwicksFirstDuel.class));
cards.add(new SetCardInfo("Gallant Pie-Wielder", 15, Rarity.UNCOMMON, mage.cards.g.GallantPieWielder.class));