mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Vito, Thorn of the Dusk Rose
This commit is contained in:
parent
9e2d822f97
commit
154a620604
2 changed files with 89 additions and 0 deletions
88
Mage.Sets/src/mage/cards/v/VitoThornOfTheDuskRose.java
Normal file
88
Mage.Sets/src/mage/cards/v/VitoThornOfTheDuskRose.java
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
package mage.cards.v;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.TriggeredAbilityImpl;
|
||||||
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||||
|
import mage.abilities.keyword.LifelinkAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.*;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.game.events.GameEvent;
|
||||||
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class VitoThornOfTheDuskRose extends CardImpl {
|
||||||
|
|
||||||
|
public VitoThornOfTheDuskRose(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||||
|
|
||||||
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.VAMPIRE);
|
||||||
|
this.subtype.add(SubType.CLERIC);
|
||||||
|
this.power = new MageInt(1);
|
||||||
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
|
// Whenever you gain life, target opponent loses that much life.
|
||||||
|
this.addAbility(new VitoThornOfTheDuskRoseTriggeredAbility());
|
||||||
|
|
||||||
|
// {3}{B}{B}: Creatures you control gain lifelink until end of turn.
|
||||||
|
this.addAbility(new SimpleActivatedAbility(new GainAbilityControlledEffect(
|
||||||
|
LifelinkAbility.getInstance(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES
|
||||||
|
), new ManaCostsImpl("{3}{B}{B}")));
|
||||||
|
}
|
||||||
|
|
||||||
|
private VitoThornOfTheDuskRose(final VitoThornOfTheDuskRose card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VitoThornOfTheDuskRose copy() {
|
||||||
|
return new VitoThornOfTheDuskRose(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class VitoThornOfTheDuskRoseTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
|
VitoThornOfTheDuskRoseTriggeredAbility() {
|
||||||
|
super(Zone.BATTLEFIELD, null);
|
||||||
|
this.addTarget(new TargetOpponent());
|
||||||
|
}
|
||||||
|
|
||||||
|
private VitoThornOfTheDuskRoseTriggeredAbility(final VitoThornOfTheDuskRoseTriggeredAbility ability) {
|
||||||
|
super(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VitoThornOfTheDuskRoseTriggeredAbility copy() {
|
||||||
|
return new VitoThornOfTheDuskRoseTriggeredAbility(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkEventType(GameEvent event, Game game) {
|
||||||
|
return event.getType() == GameEvent.EventType.GAINED_LIFE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
|
if (event.getPlayerId().equals(this.controllerId)) {
|
||||||
|
this.getEffects().clear();
|
||||||
|
this.addEffect(new LoseLifeTargetEffect(event.getAmount()));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getRule() {
|
||||||
|
return "Whenever you gain life, target opponent loses that much life.";
|
||||||
|
}
|
||||||
|
}
|
|
@ -56,6 +56,7 @@ public final class CoreSet2021 extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Teferi's Protege", 77, Rarity.COMMON, mage.cards.t.TeferisProtege.class));
|
cards.add(new SetCardInfo("Teferi's Protege", 77, Rarity.COMMON, mage.cards.t.TeferisProtege.class));
|
||||||
cards.add(new SetCardInfo("Tormod's Crypt", 241, Rarity.UNCOMMON, mage.cards.t.TormodsCrypt.class));
|
cards.add(new SetCardInfo("Tormod's Crypt", 241, Rarity.UNCOMMON, mage.cards.t.TormodsCrypt.class));
|
||||||
cards.add(new SetCardInfo("Ugin, the Spirit Dragon", 1, Rarity.MYTHIC, mage.cards.u.UginTheSpiritDragon.class));
|
cards.add(new SetCardInfo("Ugin, the Spirit Dragon", 1, Rarity.MYTHIC, mage.cards.u.UginTheSpiritDragon.class));
|
||||||
|
cards.add(new SetCardInfo("Vito, Thorn of the Dusk Rose", 127, Rarity.RARE, mage.cards.v.VitoThornOfTheDuskRose.class));
|
||||||
cards.add(new SetCardInfo("Wildwood Patrol", 339, Rarity.COMMON, mage.cards.w.WildwoodPatrol.class));
|
cards.add(new SetCardInfo("Wildwood Patrol", 339, Rarity.COMMON, mage.cards.w.WildwoodPatrol.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue