Skip to content

Commit

Permalink
[OTC] Implement Tower Winder
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Apr 7, 2024
1 parent af3903c commit 36d1894
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Mage.Sets/src/mage/cards/t/TowerWinder.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package mage.cards.t;

import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect;
import mage.abilities.keyword.DeathtouchAbility;
import mage.abilities.keyword.ReachAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.predicate.mageobject.NamePredicate;

import java.util.UUID;

/**
* @author TheElk801
*/
public final class TowerWinder extends CardImpl {

private static final FilterCard filter = new FilterCard("Command Tower");

static {
filter.add(new NamePredicate("Command Tower"));
}

public TowerWinder(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");

this.subtype.add(SubType.SNAKE);
this.power = new MageInt(1);
this.toughness = new MageInt(1);

// Reach
this.addAbility(ReachAbility.getInstance());

// Deathtouch
this.addAbility(DeathtouchAbility.getInstance());

// When Tower Winder enters the battlefield, search your library and/or graveyard for a card named Command Tower, reveal it, and put it into your hand. If you search your library this way, shuffle.
this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filter)));
}

private TowerWinder(final TowerWinder card) {
super(card);
}

@Override
public TowerWinder copy() {
return new TowerWinder(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ private OutlawsOfThunderJunctionCommander() {
cards.add(new SetCardInfo("Three Visits", 209, Rarity.UNCOMMON, mage.cards.t.ThreeVisits.class));
cards.add(new SetCardInfo("Thrilling Discovery", 245, Rarity.COMMON, mage.cards.t.ThrillingDiscovery.class));
cards.add(new SetCardInfo("Titania, Protector of Argoth", 210, Rarity.MYTHIC, mage.cards.t.TitaniaProtectorOfArgoth.class));
cards.add(new SetCardInfo("Tower Winder", 34, Rarity.RARE, mage.cards.t.TowerWinder.class));
cards.add(new SetCardInfo("Trailblazer's Boots", 269, Rarity.UNCOMMON, mage.cards.t.TrailblazersBoots.class));
cards.add(new SetCardInfo("Treasure Cruise", 120, Rarity.COMMON, mage.cards.t.TreasureCruise.class));
cards.add(new SetCardInfo("Triton Shorestalker", 121, Rarity.COMMON, mage.cards.t.TritonShorestalker.class));
Expand Down

0 comments on commit 36d1894

Please sign in to comment.