mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[SNC] Implemented Vampire Scrivener
This commit is contained in:
parent
b2f36b24e5
commit
b2d9cc74bb
2 changed files with 87 additions and 0 deletions
86
Mage.Sets/src/mage/cards/v/VampireScrivener.java
Normal file
86
Mage.Sets/src/mage/cards/v/VampireScrivener.java
Normal file
|
@ -0,0 +1,86 @@
|
|||
package mage.cards.v;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.GainLifeControllerTriggeredAbility;
|
||||
import mage.abilities.condition.common.MyTurnCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VampireScrivener extends CardImpl {
|
||||
|
||||
public VampireScrivener(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}");
|
||||
|
||||
this.subtype.add(SubType.VAMPIRE);
|
||||
this.subtype.add(SubType.WARLOCK);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Whenever you gain life during your turn, put a +1/+1 counter on Vampire Scrivener.
|
||||
this.addAbility(new ConditionalTriggeredAbility(new GainLifeControllerTriggeredAbility(
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance())), MyTurnCondition.instance,
|
||||
"Whenever you gain life during your turn, put a +1/+1 counter on {this}."
|
||||
));
|
||||
|
||||
// Whenever you lose life during your turn, put a +1/+1 counter on Vampire Scrivener.
|
||||
this.addAbility(new VampireScrivenerTriggeredAbility());
|
||||
}
|
||||
|
||||
private VampireScrivener(final VampireScrivener card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VampireScrivener copy() {
|
||||
return new VampireScrivener(this);
|
||||
}
|
||||
}
|
||||
|
||||
class VampireScrivenerTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
VampireScrivenerTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
|
||||
}
|
||||
|
||||
private VampireScrivenerTriggeredAbility(final VampireScrivenerTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VampireScrivenerTriggeredAbility copy() {
|
||||
return new VampireScrivenerTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.LOST_LIFE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return game.isActivePlayer(event.getPlayerId()) && game.isActivePlayer(getControllerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever you lose life during your turn, put a +1/+1 counter on {this}.";
|
||||
}
|
||||
}
|
|
@ -99,6 +99,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Tramway Station", 258, Rarity.COMMON, mage.cards.t.TramwayStation.class));
|
||||
cards.add(new SetCardInfo("Unlucky Witness", 128, Rarity.UNCOMMON, mage.cards.u.UnluckyWitness.class));
|
||||
cards.add(new SetCardInfo("Urabrask, Heretic Praetor", 129, Rarity.MYTHIC, mage.cards.u.UrabraskHereticPraetor.class));
|
||||
cards.add(new SetCardInfo("Vampire Scrivener", 98, Rarity.UNCOMMON, mage.cards.v.VampireScrivener.class));
|
||||
cards.add(new SetCardInfo("Vivien on the Hunt", 162, Rarity.MYTHIC, mage.cards.v.VivienOnTheHunt.class));
|
||||
cards.add(new SetCardInfo("Waterfront District", 259, Rarity.COMMON, mage.cards.w.WaterfrontDistrict.class));
|
||||
cards.add(new SetCardInfo("Witness Protection", 66, Rarity.COMMON, mage.cards.w.WitnessProtection.class));
|
||||
|
|
Loading…
Reference in a new issue