[FDN] Implement Revenge of the Rats

This commit is contained in:
ciaccona007 2024-11-01 23:29:36 -04:00
parent da838a5893
commit 6cc05fa3b0
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.cards.r;
import java.util.UUID;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.hint.ValueHint;
import mage.abilities.keyword.FlashbackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.RatToken;
import mage.game.permanent.token.ZombieToken;
/**
*
* @author ciaccona007
*/
public final class RevengeOfTheRats extends CardImpl {
private static final DynamicValue cardsCount = new CardsInControllerGraveyardCount(StaticFilters.FILTER_CARD_CREATURE);
public RevengeOfTheRats(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
// Create a tapped 1/1 black Rat creature token for each creature card in your graveyard.
this.getSpellAbility().addEffect(new CreateTokenEffect(new RatToken(), cardsCount, true, false));
this.getSpellAbility().addHint(new ValueHint("creature card card in your graveyard", cardsCount));
// Flashback {2}{B}{B}
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{2}{B}{B}")));
}
private RevengeOfTheRats(final RevengeOfTheRats card) {
super(card);
}
@Override
public RevengeOfTheRats copy() {
return new RevengeOfTheRats(this);
}
}

View file

@ -346,6 +346,7 @@ public final class Foundations extends ExpansionSet {
cards.add(new SetCardInfo("Regal Caracal", 579, Rarity.RARE, mage.cards.r.RegalCaracal.class));
cards.add(new SetCardInfo("Release the Dogs", 580, Rarity.UNCOMMON, mage.cards.r.ReleaseTheDogs.class));
cards.add(new SetCardInfo("Resolute Reinforcements", 145, Rarity.UNCOMMON, mage.cards.r.ResoluteReinforcements.class));
cards.add(new SetCardInfo("Revenge of the Rats", 67, Rarity.UNCOMMON, mage.cards.r.RevengeOfTheRats.class));
cards.add(new SetCardInfo("Rise of the Dark Realms", 183, Rarity.MYTHIC, mage.cards.r.RiseOfTheDarkRealms.class));
cards.add(new SetCardInfo("Rite of Replication", 711, Rarity.RARE, mage.cards.r.RiteOfReplication.class));
cards.add(new SetCardInfo("River's Rebuke", 595, Rarity.RARE, mage.cards.r.RiversRebuke.class));