[ECL] Implement Clachan Festival

This commit is contained in:
theelk801 2026-01-08 14:00:36 -05:00
parent b69ccdb53e
commit bbce7998ec
3 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,42 @@
package mage.cards.c;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.KithkinGreenWhiteToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ClachanFestival extends CardImpl {
public ClachanFestival(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.KINDRED, CardType.ENCHANTMENT}, "{2}{W}");
this.subtype.add(SubType.KITHKIN);
// When this enchantment enters, create two 1/1 green and white Kithkin creature tokens.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new KithkinGreenWhiteToken(), 2)));
// {4}{W}: Create a 1/1 green and white Kithkin creature token.
this.addAbility(new SimpleActivatedAbility(
new CreateTokenEffect(new KithkinGreenWhiteToken()), new ManaCostsImpl<>("{4}{W}")
));
}
private ClachanFestival(final ClachanFestival card) {
super(card);
}
@Override
public ClachanFestival copy() {
return new ClachanFestival(this);
}
}

View file

@ -63,6 +63,7 @@ public final class LorwynEclipsed extends ExpansionSet {
cards.add(new SetCardInfo("Chaos Spewer", 210, Rarity.COMMON, mage.cards.c.ChaosSpewer.class));
cards.add(new SetCardInfo("Chitinous Graspling", 211, Rarity.COMMON, mage.cards.c.ChitinousGraspling.class));
cards.add(new SetCardInfo("Chomping Changeling", 172, Rarity.UNCOMMON, mage.cards.c.ChompingChangeling.class));
cards.add(new SetCardInfo("Clachan Festival", 10, Rarity.UNCOMMON, mage.cards.c.ClachanFestival.class));
cards.add(new SetCardInfo("Crib Swap", 11, Rarity.UNCOMMON, mage.cards.c.CribSwap.class));
cards.add(new SetCardInfo("Crossroads Watcher", 173, Rarity.COMMON, mage.cards.c.CrossroadsWatcher.class));
cards.add(new SetCardInfo("Darkness Descends", 97, Rarity.UNCOMMON, mage.cards.d.DarknessDescends.class));

View file

@ -0,0 +1,29 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class KithkinGreenWhiteToken extends TokenImpl {
public KithkinGreenWhiteToken() {
super("Kithkin Token", "1/1 green and white Kithkin creature token");
cardType.add(CardType.CREATURE);
color.setGreen(true);
color.setWhite(true);
subtype.add(SubType.KITHKIN);
power = new MageInt(1);
toughness = new MageInt(1);
}
private KithkinGreenWhiteToken(final KithkinGreenWhiteToken token) {
super(token);
}
public KithkinGreenWhiteToken copy() {
return new KithkinGreenWhiteToken(this);
}
}