Implemented Moodmark Painter

This commit is contained in:
Evan Kranzler 2018-09-04 14:02:29 -04:00
parent a1414103b3
commit 26f0f20d82
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,64 @@
package mage.cards.m;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.MenaceAbility;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.StaticFilters;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class MoodmarkPainter extends CardImpl {
public MoodmarkPainter(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{B}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SHAMAN);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Undergrowth When Moodmark Painter enters the battlefield, target creature gains menace and gets +X/+0 until end of turn, where X is the number of creature cards in your graveyard.
DynamicValue xValue = new CardsInControllerGraveyardCount(
StaticFilters.FILTER_CARD_CREATURE
);
Ability ability = new EntersBattlefieldTriggeredAbility(
new GainAbilityTargetEffect(
new MenaceAbility(),
Duration.EndOfTurn
).setText("target creature gains menace"),
false, "<i>Undergrowth</i> &mdash; "
);
ability.addEffect(new BoostTargetEffect(
xValue, new StaticValue(0),
Duration.EndOfTurn, true
).setText("and gets +X/+0 until end of turn, "
+ "where X is the number of creature cards in your graveyard")
);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}
public MoodmarkPainter(final MoodmarkPainter card) {
super(card);
}
@Override
public MoodmarkPainter copy() {
return new MoodmarkPainter(this);
}
}

View file

@ -34,6 +34,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Impervious Greatwurm", 273, Rarity.MYTHIC, mage.cards.i.ImperviousGreatwurm.class));
cards.add(new SetCardInfo("Island", 261, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Legion Warboss", 109, Rarity.RARE, mage.cards.l.LegionWarboss.class));
cards.add(new SetCardInfo("Moodmark Painter", 78, Rarity.COMMON, mage.cards.m.MoodmarkPainter.class));
cards.add(new SetCardInfo("Mountain", 263, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Narcomoeba", 47, Rarity.RARE, mage.cards.n.Narcomoeba.class));
cards.add(new SetCardInfo("Necrotic Wound", 79, Rarity.UNCOMMON, mage.cards.n.NecroticWound.class));