mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
[MID] Implemented Ritual of Hope
This commit is contained in:
parent
8a06b41d89
commit
e4b467648a
2 changed files with 67 additions and 0 deletions
66
Mage.Sets/src/mage/cards/r/RitualOfHope.java
Normal file
66
Mage.Sets/src/mage/cards/r/RitualOfHope.java
Normal file
|
@ -0,0 +1,66 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.common.CovenCondition;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RitualOfHope extends CardImpl {
|
||||
|
||||
public RitualOfHope(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||
|
||||
// Creatures you control get +1/+1 until end of turn.
|
||||
// Coven — If you control three or more creatures with different powers, creatures you control get +2/+1 until end of turn instead.
|
||||
this.getSpellAbility().addEffect(new RitualOfHopeEffect());
|
||||
}
|
||||
|
||||
private RitualOfHope(final RitualOfHope card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RitualOfHope copy() {
|
||||
return new RitualOfHope(this);
|
||||
}
|
||||
}
|
||||
|
||||
class RitualOfHopeEffect extends OneShotEffect {
|
||||
|
||||
RitualOfHopeEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "Creatures you control get +1/+1 until end of turn." +
|
||||
"<br>" + AbilityWord.COVEN.formatWord() +
|
||||
"If you control three or more creatures with different powers, " +
|
||||
"creatures you control get +2/+1 until end of turn instead";
|
||||
}
|
||||
|
||||
private RitualOfHopeEffect(final RitualOfHopeEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RitualOfHopeEffect copy() {
|
||||
return new RitualOfHopeEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
game.addEffect(new BoostControlledEffect(
|
||||
CovenCondition.instance.apply(game, source) ? 2 : 1, 1, Duration.EndOfTurn
|
||||
), source);
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -93,6 +93,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Poppet Stitcher", 71, Rarity.MYTHIC, mage.cards.p.PoppetStitcher.class));
|
||||
cards.add(new SetCardInfo("Rite of Harmony", 236, Rarity.RARE, mage.cards.r.RiteOfHarmony.class));
|
||||
cards.add(new SetCardInfo("Ritual Guardian", 30, Rarity.COMMON, mage.cards.r.RitualGuardian.class));
|
||||
cards.add(new SetCardInfo("Ritual of Hope", 31, Rarity.UNCOMMON, mage.cards.r.RitualOfHope.class));
|
||||
cards.add(new SetCardInfo("Rockfall Vale", 266, Rarity.RARE, mage.cards.r.RockfallVale.class));
|
||||
cards.add(new SetCardInfo("Sacred Fire", 239, Rarity.UNCOMMON, mage.cards.s.SacredFire.class));
|
||||
cards.add(new SetCardInfo("Saryth, the Viper's Fang", 197, Rarity.RARE, mage.cards.s.SarythTheVipersFang.class));
|
||||
|
|
Loading…
Reference in a new issue