mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
[MID] Implemented Stolen Vitality
This commit is contained in:
parent
82c370d79f
commit
0d49a91a6f
2 changed files with 45 additions and 0 deletions
44
Mage.Sets/src/mage/cards/s/StolenVitality.java
Normal file
44
Mage.Sets/src/mage/cards/s/StolenVitality.java
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.condition.common.MyTurnCondition;
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.FirstStrikeAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class StolenVitality extends CardImpl {
|
||||
|
||||
public StolenVitality(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Target creature gets +3/+1 until end of turn. If it's your turn, that creature gains trample until end of turn. Otherwise, it gains first strike until end of turn.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 1));
|
||||
this.getSpellAbility().addEffect(new ConditionalContinuousEffect(
|
||||
new GainAbilityTargetEffect(TrampleAbility.getInstance(), Duration.EndOfTurn),
|
||||
new GainAbilityTargetEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn),
|
||||
MyTurnCondition.instance, "If it's your turn, that creature gains trample " +
|
||||
"until end of turn. Otherwise, it gains first strike until end of turn"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private StolenVitality(final StolenVitality card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public StolenVitality copy() {
|
||||
return new StolenVitality(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -240,6 +240,7 @@ public final class InnistradMidnightHunt extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Spellrune Painter", 160, Rarity.UNCOMMON, mage.cards.s.SpellrunePainter.class));
|
||||
cards.add(new SetCardInfo("Stalking Predator", 120, Rarity.COMMON, mage.cards.s.StalkingPredator.class));
|
||||
cards.add(new SetCardInfo("Startle", 78, Rarity.COMMON, mage.cards.s.Startle.class));
|
||||
cards.add(new SetCardInfo("Stolen Vitality", 161, Rarity.COMMON, mage.cards.s.StolenVitality.class));
|
||||
cards.add(new SetCardInfo("Storm-Charged Slasher", 157, Rarity.RARE, mage.cards.s.StormChargedSlasher.class));
|
||||
cards.add(new SetCardInfo("Stormrider Spirit", 79, Rarity.COMMON, mage.cards.s.StormriderSpirit.class));
|
||||
cards.add(new SetCardInfo("Stromkirk Bloodthief", 123, Rarity.UNCOMMON, mage.cards.s.StromkirkBloodthief.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue