[WOE] Implement Warehouse Tabby

This commit is contained in:
theelk801 2023-08-16 21:06:30 -04:00
parent 7c939ca803
commit 4781a51fb6
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,52 @@
package mage.cards.w;
import mage.MageInt;
import mage.abilities.common.PutIntoGraveFromBattlefieldAllTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.DeathtouchAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.RatCantBlockToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class WarehouseTabby extends CardImpl {
public WarehouseTabby(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
this.subtype.add(SubType.CAT);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// Whenever an enchantment you control is put into a graveyard from the battlefield, create a 1/1 black Rat creature token with "This creature can't block."
this.addAbility(new PutIntoGraveFromBattlefieldAllTriggeredAbility(
new CreateTokenEffect(new RatCantBlockToken()), false,
StaticFilters.FILTER_CONTROLLED_PERMANENT_ENCHANTMENT, false
));
// {1}{B}: Warehouse Tabby gains deathtouch until end of turn.
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(
DeathtouchAbility.getInstance(), Duration.EndOfTurn
), new ManaCostsImpl<>("{1}{B}")));
}
private WarehouseTabby(final WarehouseTabby card) {
super(card);
}
@Override
public WarehouseTabby copy() {
return new WarehouseTabby(this);
}
}

View file

@ -59,6 +59,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Tough Cookie", 193, Rarity.UNCOMMON, mage.cards.t.ToughCookie.class));
cards.add(new SetCardInfo("Troublemaker Ouphe", 194, Rarity.COMMON, mage.cards.t.TroublemakerOuphe.class));
cards.add(new SetCardInfo("Troyan, Gutsy Explorer", 217, Rarity.UNCOMMON, mage.cards.t.TroyanGutsyExplorer.class));
cards.add(new SetCardInfo("Warehouse Tabby", 117, Rarity.COMMON, mage.cards.w.WarehouseTabby.class));
}
// @Override