[FIC] Implement Tromell, Seymour's Butler

This commit is contained in:
theelk801 2025-05-13 21:36:48 -04:00
parent dd945eaee6
commit c12c363843
2 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,112 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.EntersWithCountersControlledEffect;
import mage.abilities.effects.common.counter.ProliferateEffect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.EnteredThisTurnPredicate;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.game.Game;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TromellSeymoursButler extends CardImpl {
public TromellSeymoursButler(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.ADVISOR);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Each other nontoken creature you control enters with an additional +1/+1 counter on it.
this.addAbility(new SimpleStaticAbility(new EntersWithCountersControlledEffect(
StaticFilters.FILTER_CONTROLLED_CREATURE_NON_TOKEN,
CounterType.P1P1.createInstance(), true
)));
// {1}, {T}: Proliferate X times, where X is the number of nontoken creatures you control that entered this turn.
Ability ability = new SimpleActivatedAbility(new TromellSeymoursButlerEffect(), new GenericManaCost(1));
ability.addCost(new TapSourceCost());
this.addAbility(ability.addHint(TromellSeymoursButlerEffect.getHint()));
}
private TromellSeymoursButler(final TromellSeymoursButler card) {
super(card);
}
@Override
public TromellSeymoursButler copy() {
return new TromellSeymoursButler(this);
}
}
class TromellSeymoursButlerEffect extends OneShotEffect {
private static final FilterPermanent filter = new FilterControlledCreaturePermanent();
static {
filter.add(TokenPredicate.FALSE);
filter.add(EnteredThisTurnPredicate.instance);
}
private static final Hint hint = new ValueHint(
"Nontoken creatures you control that entered this turn", new PermanentsOnBattlefieldCount(filter)
);
TromellSeymoursButlerEffect() {
super(Outcome.Benefit);
staticText = "proliferate X times, where X is the number of " +
"nontoken creatures you control that entered this turn";
}
private TromellSeymoursButlerEffect(final TromellSeymoursButlerEffect effect) {
super(effect);
}
@Override
public TromellSeymoursButlerEffect copy() {
return new TromellSeymoursButlerEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
int count = game.getBattlefield().count(filter, source.getControllerId(), source, game);
if (count < 1) {
return false;
}
Effect effect = new ProliferateEffect();
for (int i = 0; i < count; i++) {
effect.apply(game, source);
}
return true;
}
public static Hint getHint() {
return hint;
}
}

View file

@ -337,6 +337,8 @@ public final class FinalFantasyCommander extends ExpansionSet {
cards.add(new SetCardInfo("Torrential Gearhulk", 272, Rarity.RARE, mage.cards.t.TorrentialGearhulk.class));
cards.add(new SetCardInfo("Tragic Arrogance", 258, Rarity.RARE, mage.cards.t.TragicArrogance.class));
cards.add(new SetCardInfo("Trailblazer's Boots", 370, Rarity.UNCOMMON, mage.cards.t.TrailblazersBoots.class));
cards.add(new SetCardInfo("Tromell, Seymour's Butler", 162, Rarity.RARE, mage.cards.t.TromellSeymoursButler.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Tromell, Seymour's Butler", 73, Rarity.RARE, mage.cards.t.TromellSeymoursButler.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Ultimate Magic: Holy", 110, Rarity.RARE, mage.cards.u.UltimateMagicHoly.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Ultimate Magic: Holy", 32, Rarity.RARE, mage.cards.u.UltimateMagicHoly.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Umaro, Raging Yeti", 156, Rarity.RARE, mage.cards.u.UmaroRagingYeti.class, NON_FULL_USE_VARIOUS));