[ECC] Implement Jubilation

This commit is contained in:
theelk801 2026-01-06 20:44:50 -05:00
parent b27d595b61
commit 9c60af3309
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,55 @@
package mage.cards.j;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.EncoreAbility;
import mage.abilities.keyword.TrampleAbility;
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 java.util.UUID;
/**
* @author TheElk801
*/
public final class Jubilation extends CardImpl {
public Jubilation(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}");
this.subtype.add(SubType.ELEMENTAL);
this.subtype.add(SubType.INCARNATION);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// When this creature enters, creatures you control get +2/+2 and gain trample until end of turn.
Ability ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(
2, 2, Duration.EndOfTurn
).setText("creatures you control get +2/+2"));
ability.addEffect(new GainAbilityControlledEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_CONTROLLED_CREATURE
).setText("and gain trample until end of turn"));
this.addAbility(ability);
// Encore {7}{G}{G}
this.addAbility(new EncoreAbility(new ManaCostsImpl<>("{7}{G}{G}")));
}
private Jubilation(final Jubilation card) {
super(card);
}
@Override
public Jubilation copy() {
return new Jubilation(this);
}
}

View file

@ -89,6 +89,8 @@ public final class LorwynEclipsedCommander extends ExpansionSet {
cards.add(new SetCardInfo("Infernal Grasp", 77, Rarity.UNCOMMON, mage.cards.i.InfernalGrasp.class));
cards.add(new SetCardInfo("Ingot Chewer", 95, Rarity.COMMON, mage.cards.i.IngotChewer.class));
cards.add(new SetCardInfo("Jegantha, the Wellspring", 125, Rarity.RARE, mage.cards.j.JeganthaTheWellspring.class));
cards.add(new SetCardInfo("Jubilation", 17, Rarity.RARE, mage.cards.j.Jubilation.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Jubilation", 37, Rarity.RARE, mage.cards.j.Jubilation.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Jungle Shrine", 154, Rarity.UNCOMMON, mage.cards.j.JungleShrine.class));
cards.add(new SetCardInfo("Kindred Summons", 112, Rarity.RARE, mage.cards.k.KindredSummons.class));
cards.add(new SetCardInfo("Kodama's Reach", 113, Rarity.COMMON, mage.cards.k.KodamasReach.class));