mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[VOC] Implemented Haunted Library
This commit is contained in:
parent
0183843a2c
commit
c56f933db1
2 changed files with 38 additions and 0 deletions
37
Mage.Sets/src/mage/cards/h/HauntedLibrary.java
Normal file
37
Mage.Sets/src/mage/cards/h/HauntedLibrary.java
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.SpiritWhiteToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HauntedLibrary extends CardImpl {
|
||||
|
||||
public HauntedLibrary(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
|
||||
|
||||
// Whenever a creature an opponent controls dies, you may pay {1}. If you do, create a 1/1 white Spirit creature token with flying.
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(new DoIfCostPaid(
|
||||
new CreateTokenEffect(new SpiritWhiteToken()), new GenericManaCost(1)
|
||||
), false, StaticFilters.FILTER_OPPONENTS_PERMANENT_A_CREATURE));
|
||||
}
|
||||
|
||||
private HauntedLibrary(final HauntedLibrary card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HauntedLibrary copy() {
|
||||
return new HauntedLibrary(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +70,7 @@ public final class CrimsonVowCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ghostly Prison", 87, Rarity.UNCOMMON, mage.cards.g.GhostlyPrison.class));
|
||||
cards.add(new SetCardInfo("Hallowed Spiritkeeper", 88, Rarity.RARE, mage.cards.h.HallowedSpiritkeeper.class));
|
||||
cards.add(new SetCardInfo("Hanged Executioner", 89, Rarity.RARE, mage.cards.h.HangedExecutioner.class));
|
||||
cards.add(new SetCardInfo("Haunted Library", 6, Rarity.RARE, mage.cards.h.HauntedLibrary.class));
|
||||
cards.add(new SetCardInfo("Hollowhenge Overlord", 36, Rarity.RARE, mage.cards.h.HollowhengeOverlord.class));
|
||||
cards.add(new SetCardInfo("Imprisoned in the Moon", 106, Rarity.RARE, mage.cards.i.ImprisonedInTheMoon.class));
|
||||
cards.add(new SetCardInfo("Indulgent Aristocrat", 130, Rarity.UNCOMMON, mage.cards.i.IndulgentAristocrat.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue