Implemented Valiant Knight

This commit is contained in:
Evan Kranzler 2018-06-20 16:53:35 -04:00
parent 0cca3ea59a
commit 2ff7037399
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,62 @@
package mage.cards.v;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.DoubleStrikeAbility;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.filter.common.FilterCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class ValiantKnight extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent(SubType.KNIGHT, "Knights you control");
public ValiantKnight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.KNIGHT);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
// Other Knights you control get +1/+1.
this.addAbility(new SimpleStaticAbility(
Zone.BATTLEFIELD,
new BoostControlledEffect(
1, 1, Duration.WhileOnBattlefield,
filter, true
)
));
// {3}{W}{W}: Knights you control gain double strike until end of turn.
this.addAbility(new SimpleActivatedAbility(
new GainAbilityControlledEffect(
DoubleStrikeAbility.getInstance(),
Duration.EndOfTurn, filter
), new ManaCostsImpl("{3}{W}{W}")
));
}
public ValiantKnight(final ValiantKnight card) {
super(card);
}
@Override
public ValiantKnight copy() {
return new ValiantKnight(this);
}
}

View file

@ -215,6 +215,7 @@ public final class CoreSet2019 extends ExpansionSet {
cards.add(new SetCardInfo("Uncomfortable Chill", 82, Rarity.COMMON, mage.cards.u.UncomfortableChill.class));
cards.add(new SetCardInfo("Ursine Champion", 304, Rarity.COMMON, mage.cards.u.UrsineChampion.class));
cards.add(new SetCardInfo("Vaevictis Asmadi, the Dire", 225, Rarity.MYTHIC, mage.cards.v.VaevictisAsmadiTheDire.class));
cards.add(new SetCardInfo("Valiant Knight", 42, Rarity.RARE, mage.cards.v.ValiantKnight.class));
cards.add(new SetCardInfo("Vampire Sovereign", 125, Rarity.UNCOMMON, mage.cards.v.VampireSovereign.class));
cards.add(new SetCardInfo("Viashino Pyromancer", 166, Rarity.COMMON, mage.cards.v.ViashinoPyromancer.class));
cards.add(new SetCardInfo("Vine Mare", 207, Rarity.UNCOMMON, mage.cards.v.VineMare.class));