mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
implement [MH3] Revitalizing Repast // Old-Growth Grove
This commit is contained in:
parent
a0fb32f080
commit
38c7563b72
2 changed files with 64 additions and 0 deletions
63
Mage.Sets/src/mage/cards/r/RevitalizingRepast.java
Normal file
63
Mage.Sets/src/mage/cards/r/RevitalizingRepast.java
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.common.EntersBattlefieldTappedAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.abilities.mana.BlackManaAbility;
|
||||
import mage.abilities.mana.GreenManaAbility;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class RevitalizingRepast extends ModalDoubleFacedCard {
|
||||
|
||||
public RevitalizingRepast(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo,
|
||||
new CardType[]{CardType.INSTANT}, new SubType[]{}, "{B/G}",
|
||||
"Old-Growth Grove", new CardType[]{CardType.LAND}, new SubType[]{}, ""
|
||||
);
|
||||
|
||||
// 1.
|
||||
// Revitalizing Repast
|
||||
// Instant
|
||||
|
||||
// Put a +1/+1 counter on target creature. It gains indestructible until end of turn.
|
||||
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||
new AddCountersTargetEffect(CounterType.P1P1.createInstance())
|
||||
);
|
||||
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||
new GainAbilityTargetEffect(IndestructibleAbility.getInstance())
|
||||
.setText("It gains indestructible until end of turn")
|
||||
);
|
||||
this.getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// 2.
|
||||
// Old-Growth Grove
|
||||
// Land
|
||||
|
||||
// Old-Growth Grove enters the battlefield tapped.
|
||||
this.getRightHalfCard().addAbility(new EntersBattlefieldTappedAbility());
|
||||
|
||||
// {T}: Add {B} or {G}.
|
||||
this.getRightHalfCard().addAbility(new BlackManaAbility());
|
||||
this.getRightHalfCard().addAbility(new GreenManaAbility());
|
||||
}
|
||||
|
||||
private RevitalizingRepast(final RevitalizingRepast card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RevitalizingRepast copy() {
|
||||
return new RevitalizingRepast(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -83,6 +83,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Psychic Frog", 199, Rarity.RARE, mage.cards.p.PsychicFrog.class));
|
||||
cards.add(new SetCardInfo("Ral, Monsoon Mage", 247, Rarity.MYTHIC, mage.cards.r.RalMonsoonMage.class));
|
||||
cards.add(new SetCardInfo("Ral, Leyline Prodigy", 247, Rarity.MYTHIC, mage.cards.r.RalLeylineProdigy.class));
|
||||
cards.add(new SetCardInfo("Revitalizing Repast", 256, Rarity.UNCOMMON, mage.cards.r.RevitalizingRepast.class));
|
||||
cards.add(new SetCardInfo("Ruby Medallion", 295, Rarity.RARE, mage.cards.r.RubyMedallion.class));
|
||||
cards.add(new SetCardInfo("Sapphire Medallion", 296, Rarity.RARE, mage.cards.s.SapphireMedallion.class));
|
||||
cards.add(new SetCardInfo("Scurrilous Sentry", 108, Rarity.COMMON, mage.cards.s.ScurrilousSentry.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue