-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package mage.cards.t; | ||
|
||
import mage.MageInt; | ||
import mage.abilities.Ability; | ||
import mage.abilities.common.SimpleActivatedAbility; | ||
import mage.abilities.common.SimpleStaticAbility; | ||
import mage.abilities.costs.common.PayLifeCost; | ||
import mage.abilities.costs.mana.ManaCostsImpl; | ||
import mage.abilities.dynamicvalue.DynamicValue; | ||
import mage.abilities.dynamicvalue.common.ControllerLifeCount; | ||
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue; | ||
import mage.abilities.effects.common.DrawCardSourceControllerEffect; | ||
import mage.abilities.effects.common.continuous.BoostSourceEffect; | ||
import mage.abilities.keyword.CrewAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.Duration; | ||
import mage.constants.SubType; | ||
import mage.constants.SuperType; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author TheElk801 | ||
*/ | ||
public final class TheLastRide extends CardImpl { | ||
|
||
private static final DynamicValue xValue = new SignInversionDynamicValue(ControllerLifeCount.instance, false); | ||
|
||
public TheLastRide(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{B}"); | ||
|
||
this.supertype.add(SuperType.LEGENDARY); | ||
this.subtype.add(SubType.VEHICLE); | ||
this.power = new MageInt(13); | ||
this.toughness = new MageInt(13); | ||
|
||
// The Last Ride gets -X/-X, where X is your life total. | ||
this.addAbility(new SimpleStaticAbility(new BoostSourceEffect(xValue, xValue, Duration.WhileOnBattlefield))); | ||
|
||
// {2}{B}, Pay 2 life: Draw a card. | ||
Ability ability = new SimpleActivatedAbility(new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{2}{B}")); | ||
ability.addCost(new PayLifeCost(2)); | ||
this.addAbility(ability); | ||
|
||
// Crew 2 | ||
this.addAbility(new CrewAbility(2)); | ||
} | ||
|
||
private TheLastRide(final TheLastRide card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public TheLastRide copy() { | ||
return new TheLastRide(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters