Implemented Rejuvenating Springs

This commit is contained in:
Evan Kranzler 2020-08-22 15:45:33 -04:00
parent 89f895bf56
commit b0b34f7330
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.r;
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.GreenManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RejuvenatingSprings extends CardImpl {
public RejuvenatingSprings(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
// Rejuvenating Springs 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 {G} or {U}.
this.addAbility(new GreenManaAbility());
this.addAbility(new BlueManaAbility());
}
private RejuvenatingSprings(final RejuvenatingSprings card) {
super(card);
}
@Override
public RejuvenatingSprings copy() {
return new RejuvenatingSprings(this);
}
}

View file

@ -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("Rejuvenating Springs", 354, Rarity.RARE, mage.cards.r.RejuvenatingSprings.class));
cards.add(new SetCardInfo("Spectator Seating", 356, Rarity.RARE, mage.cards.s.SpectatorSeating.class));
cards.add(new SetCardInfo("Training Center", 358, Rarity.RARE, mage.cards.t.TrainingCenter.class));
cards.add(new SetCardInfo("Undergrowth Stadium", 359, Rarity.RARE, mage.cards.u.UndergrowthStadium.class));