-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WOC] Implement Tegwyll's Scouring (#12891)
* Also add all reprints from Wilds of Eldraine Commander.
- Loading branch information
1 parent
554ba87
commit 2b9b1c0
Showing
3 changed files
with
139 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package mage.cards.t; | ||
|
||
import mage.abilities.Ability; | ||
import mage.abilities.common.PayMoreToCastAsThoughtItHadFlashAbility; | ||
import mage.abilities.costs.Cost; | ||
import mage.abilities.costs.CostsImpl; | ||
import mage.abilities.costs.common.TapTargetCost; | ||
import mage.abilities.effects.common.CreateTokenEffect; | ||
import mage.abilities.effects.common.DestroyAllEffect; | ||
import mage.abilities.keyword.FlyingAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.filter.StaticFilters; | ||
import mage.filter.common.FilterControlledCreaturePermanent; | ||
import mage.filter.predicate.mageobject.AbilityPredicate; | ||
import mage.filter.predicate.permanent.TappedPredicate; | ||
import mage.game.permanent.token.FaerieRogueToken; | ||
import mage.target.common.TargetControlledCreaturePermanent; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author karapuzz14 | ||
*/ | ||
public final class TegwyllsScouring extends CardImpl { | ||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped creatures you control with flying"); | ||
|
||
static { | ||
filter.add(new AbilityPredicate(FlyingAbility.class)); | ||
filter.add(TappedPredicate.UNTAPPED); | ||
} | ||
|
||
public TegwyllsScouring(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}"); | ||
|
||
|
||
// You may cast Tegwyll's Scouring as though it had flash by tapping three untapped creatures you control with flying in addition to paying its other costs. | ||
Cost asThoughCost = new TapTargetCost(new TargetControlledCreaturePermanent(3, 3, filter, true)).setText(""); | ||
CostsImpl<Cost> costs = new CostsImpl<>().setText("tapping three untapped creatures you control with flying"); | ||
costs.add(asThoughCost); | ||
|
||
Ability ability = new PayMoreToCastAsThoughtItHadFlashAbility(this, costs); | ||
ability.addEffect(new DestroyAllEffect(StaticFilters.FILTER_PERMANENT_CREATURES)); | ||
ability.addEffect(new CreateTokenEffect(new FaerieRogueToken(), 3)); | ||
this.addAbility(ability); | ||
|
||
// Destroy all creatures. | ||
this.getSpellAbility().addEffect(new DestroyAllEffect(StaticFilters.FILTER_PERMANENT_CREATURES)); | ||
|
||
//Create three 1/1 black Faerie Rogue creature tokens with flying. | ||
this.getSpellAbility().addEffect(new CreateTokenEffect(new FaerieRogueToken(), 3)); | ||
} | ||
|
||
private TegwyllsScouring(final TegwyllsScouring card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public TegwyllsScouring copy() { | ||
return new TegwyllsScouring(this); | ||
} | ||
} |
Oops, something went wrong.