Implemented Malefic Scythe

This commit is contained in:
Evan Kranzler 2020-06-09 07:48:14 -04:00
parent d1b8ab9ccc
commit 06a3e3d365
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.m;
import mage.abilities.common.DiesAttachedTriggeredAbility;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.EquipAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.counters.CounterType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MaleficScythe extends CardImpl {
private static final DynamicValue xValue = new CountersSourceCount(CounterType.SOUL);
public MaleficScythe(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{B}");
this.subtype.add(SubType.EQUIPMENT);
// Malefic Scythe enters the battlefield with a soul counter on it.
this.addAbility(new EntersBattlefieldAbility(
new AddCountersSourceEffect(CounterType.SOUL.createInstance(1)),
"with a soul counter on it"
));
// Equipped creature gets +1/+1 for each soul counter on Malefic Scythe.
this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(xValue, xValue, Duration.WhileOnBattlefield)));
// Whenever equipped creature dies, put a soul counter on Malefic Scythe.
this.addAbility(new DiesAttachedTriggeredAbility(
new AddCountersSourceEffect(CounterType.SOUL.createInstance()), "equipped"
));
// Equip {1}
this.addAbility(new EquipAbility(1));
}
private MaleficScythe(final MaleficScythe card) {
super(card);
}
@Override
public MaleficScythe copy() {
return new MaleficScythe(this);
}
}

View file

@ -72,6 +72,7 @@ public final class CoreSet2021 extends ExpansionSet {
cards.add(new SetCardInfo("Liliana, Waker of the Dead", 108, Rarity.MYTHIC, mage.cards.l.LilianaWakerOfTheDead.class));
cards.add(new SetCardInfo("Llanowar Visionary", 193, Rarity.COMMON, mage.cards.l.LlanowarVisionary.class));
cards.add(new SetCardInfo("Lorescale Coatl", 221, Rarity.UNCOMMON, mage.cards.l.LorescaleCoatl.class));
cards.add(new SetCardInfo("Malefic Scythe", 112, Rarity.UNCOMMON, mage.cards.m.MaleficScythe.class));
cards.add(new SetCardInfo("Mangara, the Diplomat", 27, Rarity.MYTHIC, mage.cards.m.MangaraTheDiplomat.class));
cards.add(new SetCardInfo("Massacre Wurm", 114, Rarity.MYTHIC, mage.cards.m.MassacreWurm.class));
cards.add(new SetCardInfo("Mystic Skyfish", 326, Rarity.COMMON, mage.cards.m.MysticSkyfish.class));