[CMR] Implemented Pride of the Perfect

This commit is contained in:
Evan Kranzler 2020-11-05 21:50:33 -05:00
parent 61c1477599
commit 09f1655fab
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.p;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.common.FilterCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PrideOfThePerfect extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.ELF, "Elves");
public PrideOfThePerfect(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}");
// Elves you control get +2/+0.
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(
2, 0, Duration.WhileOnBattlefield, filter, false
)));
}
private PrideOfThePerfect(final PrideOfThePerfect card) {
super(card);
}
@Override
public PrideOfThePerfect copy() {
return new PrideOfThePerfect(this);
}
}

View file

@ -271,6 +271,7 @@ public final class CommanderLegends extends ExpansionSet {
cards.add(new SetCardInfo("Portent of Betrayal", 194, Rarity.COMMON, mage.cards.p.PortentOfBetrayal.class));
cards.add(new SetCardInfo("Prava of the Steel Legion", 38, Rarity.UNCOMMON, mage.cards.p.PravaOfTheSteelLegion.class));
cards.add(new SetCardInfo("Preordain", 84, Rarity.COMMON, mage.cards.p.Preordain.class));
cards.add(new SetCardInfo("Pride of the Perfect", 144, Rarity.UNCOMMON, mage.cards.p.PrideOfThePerfect.class));
cards.add(new SetCardInfo("Profane Transfusion", 145, Rarity.MYTHIC, mage.cards.p.ProfaneTransfusion.class));
cards.add(new SetCardInfo("Promise of Tomorrow", 39, Rarity.RARE, mage.cards.p.PromiseOfTomorrow.class));
cards.add(new SetCardInfo("Prophetic Prism", 334, Rarity.COMMON, mage.cards.p.PropheticPrism.class));