mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Implemented Training Center
This commit is contained in:
parent
50ac74c7c1
commit
b92af9afa8
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/t/TrainingCenter.java
Normal file
45
Mage.Sets/src/mage/cards/t/TrainingCenter.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue