[DSK] Implement Most Valuable Slayer

This commit is contained in:
theelk801 2024-09-09 12:11:32 -04:00
parent 6e9428f373
commit 6e9389be02
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.m;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.FirstStrikeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetAttackingCreature;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class MostValuableSlayer extends CardImpl {
public MostValuableSlayer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(2);
this.toughness = new MageInt(4);
// Whenever you attack, target attacking creature gets +1/+0 and gains first strike until end of turn.
Ability ability = new AttacksWithCreaturesTriggeredAbility(new BoostTargetEffect(1, 0)
.setText("target attacking creature gets +1/+0"), 1);
ability.addEffect(new GainAbilityTargetEffect(FirstStrikeAbility.getInstance())
.setText("and gains first strike until end of turn"));
ability.addTarget(new TargetAttackingCreature());
this.addAbility(ability);
}
private MostValuableSlayer(final MostValuableSlayer card) {
super(card);
}
@Override
public MostValuableSlayer copy() {
return new MostValuableSlayer(this);
}
}

View file

@ -91,6 +91,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
cards.add(new SetCardInfo("Leyline of Resonance", 143, Rarity.RARE, mage.cards.l.LeylineOfResonance.class));
cards.add(new SetCardInfo("Leyline of the Void", 106, Rarity.RARE, mage.cards.l.LeylineOfTheVoid.class));
cards.add(new SetCardInfo("Lionheart Glimmer", 19, Rarity.UNCOMMON, mage.cards.l.LionheartGlimmer.class));
cards.add(new SetCardInfo("Most Valuable Slayer", 144, Rarity.COMMON, mage.cards.m.MostValuableSlayer.class));
cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Murder", 110, Rarity.COMMON, mage.cards.m.Murder.class));
cards.add(new SetCardInfo("Murky Sewer", 263, Rarity.COMMON, mage.cards.m.MurkySewer.class));