diff --git a/Mage.Sets/src/mage/cards/t/TrainingCenter.java b/Mage.Sets/src/mage/cards/t/TrainingCenter.java new file mode 100644 index 0000000000..3c56c20187 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TrainingCenter.java @@ -0,0 +1,45 @@ +package mage.cards.t; + +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.condition.common.OneOpponentCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.TapSourceEffect; +import mage.abilities.mana.BlueManaAbility; +import mage.abilities.mana.RedManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TrainingCenter extends CardImpl { + + public TrainingCenter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // Training Center enters the battlefield tapped unless you have two or more opponents. + this.addAbility(new EntersBattlefieldAbility( + new ConditionalOneShotEffect( + new TapSourceEffect(), + OneOpponentCondition.instance, + "tapped unless you have two or more opponents" + ), "tapped unless you have two or more opponents" + )); + + // {T}: Add {U} or {R}. + this.addAbility(new BlueManaAbility()); + this.addAbility(new RedManaAbility()); + } + + private TrainingCenter(final TrainingCenter card) { + super(card); + } + + @Override + public TrainingCenter copy() { + return new TrainingCenter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index d17144f244..9a4b3ed6db 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -30,6 +30,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Command Tower", 350, Rarity.COMMON, mage.cards.c.CommandTower.class)); cards.add(new SetCardInfo("Commander's Sphere", 306, Rarity.COMMON, mage.cards.c.CommandersSphere.class)); cards.add(new SetCardInfo("Prossh, Skyraider of Kher", 530, Rarity.MYTHIC, mage.cards.p.ProsshSkyraiderOfKher.class)); + cards.add(new SetCardInfo("Training Center", 358, Rarity.RARE, mage.cards.t.TrainingCenter.class)); cards.add(new SetCardInfo("Vault of Champions", 360, Rarity.RARE, mage.cards.v.VaultOfChampions.class)); } }