Implemented Maximum Velocity

This commit is contained in:
Evan Kranzler 2018-09-14 13:27:46 -04:00
parent 70e2a3880f
commit 5f03e55450
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.m;
import java.util.UUID;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.JumpStartAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class MaximumVelocity extends CardImpl {
public MaximumVelocity(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{R}");
// Target creature gets +1/+1 and gains haste until end of turn.
this.getSpellAbility().addEffect(new BoostTargetEffect(
1, 1, Duration.EndOfTurn
).setText("Target creature gets +1/+1"));
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
HasteAbility.getInstance(), Duration.EndOfTurn
).setText("and gains flying until end of turn"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
// Jump-start
this.addAbility(new JumpStartAbility(this));
}
public MaximumVelocity(final MaximumVelocity card) {
super(card);
}
@Override
public MaximumVelocity copy() {
return new MaximumVelocity(this);
}
}

View file

@ -98,6 +98,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("March of the Multitudes", 188, Rarity.MYTHIC, mage.cards.m.MarchOfTheMultitudes.class));
cards.add(new SetCardInfo("Mausoleum Secrets", 75, Rarity.RARE, mage.cards.m.MausoleumSecrets.class));
cards.add(new SetCardInfo("Maximize Altitude", 43, Rarity.COMMON, mage.cards.m.MaximizeAltitude.class));
cards.add(new SetCardInfo("Maximum Velocity", 111, Rarity.COMMON, mage.cards.m.MaximumVelocity.class));
cards.add(new SetCardInfo("Midnight Reaper", 77, Rarity.RARE, mage.cards.m.MidnightReaper.class));
cards.add(new SetCardInfo("Molderhulk", 190, Rarity.UNCOMMON, mage.cards.m.Molderhulk.class));
cards.add(new SetCardInfo("Moodmark Painter", 78, Rarity.COMMON, mage.cards.m.MoodmarkPainter.class));