[CMM] Implement Boon of the Spirit Realm

This commit is contained in:
theelk801 2023-07-21 20:30:57 -04:00
parent f5fbfe012b
commit b1e055df75
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
package mage.cards.b;
import mage.abilities.abilityword.ConstellationAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.counters.CounterType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BoonOfTheSpiritRealm extends CardImpl {
private static final DynamicValue xValue = new CountersSourceCount(CounterType.BLESSING);
public BoonOfTheSpiritRealm(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}{W}");
// Constellation -- Whenever Boon of the Spirit Realm or another enchantment enters the battlefield under your control, put a blessing counter on Boon of the Spirit Realm.
this.addAbility(new ConstellationAbility(new AddCountersSourceEffect(CounterType.BLESSING.createInstance())));
// Creatures you control get +1/+1 for each blessing counter on Boon of the Spirit Realm.
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(xValue, xValue, Duration.WhileOnBattlefield)));
}
private BoonOfTheSpiritRealm(final BoonOfTheSpiritRealm card) {
super(card);
}
@Override
public BoonOfTheSpiritRealm copy() {
return new BoonOfTheSpiritRealm(this);
}
}

View file

@ -62,6 +62,7 @@ public final class CommanderMasters extends ExpansionSet {
cards.add(new SetCardInfo("Bonescythe Sliver", 815, Rarity.RARE, mage.cards.b.BonescytheSliver.class));
cards.add(new SetCardInfo("Bonesplitter Sliver", 874, Rarity.COMMON, mage.cards.b.BonesplitterSliver.class));
cards.add(new SetCardInfo("Boompile", 371, Rarity.RARE, mage.cards.b.Boompile.class));
cards.add(new SetCardInfo("Boon of the Spirit Realm", 720, Rarity.RARE, mage.cards.b.BoonOfTheSpiritRealm.class));
cards.add(new SetCardInfo("Boros Signet", 942, Rarity.COMMON, mage.cards.b.BorosSignet.class));
cards.add(new SetCardInfo("Braids, Conjurer Adept", 76, Rarity.RARE, mage.cards.b.BraidsConjurerAdept.class));
cards.add(new SetCardInfo("Brass Knuckles", 372, Rarity.COMMON, mage.cards.b.BrassKnuckles.class));

View file

@ -23,6 +23,7 @@ public enum CounterType {
ARROWHEAD("arrowhead"),
AWAKENING("awakening"),
BLAZE("blaze"),
BLESSING("blessing"),
BLOOD("blood"),
BLOODLINE("bloodline"),
BOOK("book"),