mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
[MH2] Implemented Resurgent Belief
This commit is contained in:
parent
798b578125
commit
5ac0008369
2 changed files with 70 additions and 0 deletions
69
Mage.Sets/src/mage/cards/r/ResurgentBelief.java
Normal file
69
Mage.Sets/src/mage/cards/r/ResurgentBelief.java
Normal file
|
@ -0,0 +1,69 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.SuspendAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterEnchantmentCard;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ResurgentBelief extends CardImpl {
|
||||
|
||||
public ResurgentBelief(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "");
|
||||
|
||||
// Suspend 2—{1}{W}
|
||||
this.addAbility(new SuspendAbility(2, new ManaCostsImpl<>("{1}{W}"), this));
|
||||
|
||||
// Return all enchantment cards from your graveyard to the battlefield.
|
||||
this.getSpellAbility().addEffect(new ResurgentBeliefEffect());
|
||||
}
|
||||
|
||||
private ResurgentBelief(final ResurgentBelief card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResurgentBelief copy() {
|
||||
return new ResurgentBelief(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ResurgentBeliefEffect extends OneShotEffect {
|
||||
|
||||
private static final FilterCard filter = new FilterEnchantmentCard();
|
||||
|
||||
ResurgentBeliefEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "return all enchantment cards from your graveyard to the battlefield";
|
||||
}
|
||||
|
||||
private ResurgentBeliefEffect(final ResurgentBeliefEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResurgentBeliefEffect copy() {
|
||||
return new ResurgentBeliefEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
return player != null && player.moveCards(
|
||||
player.getGraveyard().getCards(filter, game), Zone.BATTLEFIELD, source, game
|
||||
);
|
||||
}
|
||||
}
|
|
@ -198,6 +198,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Raving Visionary", 56, Rarity.UNCOMMON, mage.cards.r.RavingVisionary.class));
|
||||
cards.add(new SetCardInfo("Razortide Bridge", 252, Rarity.COMMON, mage.cards.r.RazortideBridge.class));
|
||||
cards.add(new SetCardInfo("Recalibrate", 57, Rarity.COMMON, mage.cards.r.Recalibrate.class));
|
||||
cards.add(new SetCardInfo("Resurgent Belief", 26, Rarity.RARE, mage.cards.r.ResurgentBelief.class));
|
||||
cards.add(new SetCardInfo("Revolutionist", 139, Rarity.COMMON, mage.cards.r.Revolutionist.class));
|
||||
cards.add(new SetCardInfo("Rift Sower", 170, Rarity.COMMON, mage.cards.r.RiftSower.class));
|
||||
cards.add(new SetCardInfo("Riptide Laboratory", 303, Rarity.RARE, mage.cards.r.RiptideLaboratory.class));
|
||||
|
|
Loading…
Reference in a new issue