mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Manifest Dread
This commit is contained in:
committed by
Hans Mackowiak
parent
d33f6296a7
commit
9e30bd943c
@@ -29,6 +29,7 @@ public abstract class ManifestBaseEffect extends SpellAbilityEffect {
|
||||
|
||||
for (final Player p : getTargetPlayers(sa, "DefinedPlayer")) {
|
||||
CardCollection tgtCards;
|
||||
Card toGrave = null;
|
||||
boolean fromLibrary = false;
|
||||
if (sa.hasParam("Choices") || sa.hasParam("ChoiceZone")) {
|
||||
ZoneType choiceZone = ZoneType.Hand;
|
||||
@@ -50,6 +51,15 @@ public abstract class ManifestBaseEffect extends SpellAbilityEffect {
|
||||
} else if ("TopOfLibrary".equals(sa.getParamOrDefault("Defined", "TopOfLibrary"))) {
|
||||
tgtCards = p.getTopXCardsFromLibrary(amount);
|
||||
fromLibrary = true;
|
||||
} else if (sa.hasParam("Dread")) {
|
||||
tgtCards = p.getTopXCardsFromLibrary(2);
|
||||
if (!tgtCards.isEmpty()) {
|
||||
Card manifest = p.getController().chooseSingleEntityForEffect(tgtCards, sa, getDefaultMessage(), null);
|
||||
tgtCards.remove(manifest);
|
||||
toGrave = tgtCards.isEmpty() ? null : tgtCards.getFirst();
|
||||
tgtCards = new CardCollection(manifest);
|
||||
}
|
||||
fromLibrary = true;
|
||||
} else {
|
||||
tgtCards = getTargetCards(sa);
|
||||
if (Iterables.all(tgtCards, CardPredicates.inZone(ZoneType.Library))) {
|
||||
@@ -67,6 +77,10 @@ public abstract class ManifestBaseEffect extends SpellAbilityEffect {
|
||||
Map<AbilityKey, Object> moveParams = AbilityKey.newMap();
|
||||
CardZoneTable triggerList = AbilityKey.addCardZoneTableParams(moveParams, sa);
|
||||
internalEffect(c, p, sa, moveParams);
|
||||
if (sa.hasParam("Dread") && toGrave != null) {
|
||||
game.getAction().moveToGraveyard(toGrave, sa, moveParams);
|
||||
toGrave = null;
|
||||
}
|
||||
triggerList.triggerChangesZoneAll(game, sa);
|
||||
}
|
||||
} else {
|
||||
|
||||
6
forge-gui/res/cardsfolder/upcoming/unwanted_remake.txt
Normal file
6
forge-gui/res/cardsfolder/upcoming/unwanted_remake.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Name:Unwanted Remake
|
||||
ManaCost:W
|
||||
Types:Instant
|
||||
A:SP$ Destroy | ValidTgts$ Creature | SubAbility$ DBDread | SpellDescription$ Destroy target creature.
|
||||
SVar:DBDread:DB$ Manifest | Dread$ True | Defined$ TargetedController | SpellDescription$ Its controller manifests dread. (That player looks at the top two cards of their library, then puts one onto the battlefield face down as a 2/2 creature and the other into their graveyard. If it's a creature card, it can be turned face up any time for its mana cost.)
|
||||
Oracle:Destroy target creature. Its controller manifests dread. (That player looks at the top two cards of their library, then puts one onto the battlefield face down as a 2/2 creature and the other into their graveyard. If it's a creature card, it can be turned face up any time for its mana cost.)
|
||||
Reference in New Issue
Block a user