mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Threats Undetected and support (#1455)
This commit is contained in:
@@ -1143,6 +1143,11 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
fetchList = CardLists.filter(fetchList, Predicates.not(CardPredicates.sharesCMCWith(c)));
|
||||
}
|
||||
}
|
||||
if (sa.hasParam("DifferentPower")) {
|
||||
for (Card c : chosenCards) {
|
||||
fetchList = CardLists.filter(fetchList, Predicates.not(Predicates.compose(Predicates.equalTo(c.getNetPower()), CardPredicates.Accessors.fnGetNetPower)));
|
||||
}
|
||||
}
|
||||
if (sa.hasParam("ShareLandType")) {
|
||||
// After the first card is chosen, check if the land type is shared
|
||||
for (final Card card : chosenCards) {
|
||||
@@ -1494,6 +1499,7 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
&& !sa.hasParam("Mandatory") // only handle optional decisions, for now
|
||||
&& !sa.hasParam("ShareLandType")
|
||||
&& !sa.hasParam("DifferentNames")
|
||||
&& !sa.hasParam("DifferentPower")
|
||||
&& !sa.hasParam("DifferentCMC")
|
||||
&& !sa.hasParam("AtRandom")
|
||||
&& (!sa.hasParam("Defined") || sa.hasParam("ChooseFromDefined"))
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
Name:Threats Undetected
|
||||
ManaCost:2 G
|
||||
Types:Sorcery
|
||||
A:SP$ ChangeZone | Origin$ Library | Destination$ Library | ChangeType$ Creature | ChangeNum$ 4 | DifferentPower$ True | RememberChanged$ True | Reveal$ True | Shuffle$ False | SubAbility$ DBTwoPiles | SpellDescription$ Search your library for up to four creature cards with different powers and reveal them. An opponent chooses two of those cards. Shuffle the chosen cards into your library and put the rest into your hand.
|
||||
SVar:DBTwoPiles:DB$ TwoPiles | Defined$ You | DefinedCards$ Remembered | Separator$ Opponent | ChosenPile$ DBLibrary | UnchosenPile$ DBHand | StackDescription$ An opponent chooses two of those cards. Shuffle the chosen cards into your library and put the rest into your hand.
|
||||
SVar:DBLibrary:DB$ ChangeZone | Defined$ Remembered | Origin$ Library | Destination$ Library
|
||||
SVar:DBHand:DB$ ChangeZone | Defined$ Remembered | Origin$ Library | Destination$ Hand
|
||||
DeckNeeds:Type$Creature
|
||||
Oracle:Search your library for up to four creature cards with different powers and reveal them. An opponent chooses two of those cards. Shuffle the chosen cards into your library and put the rest into your hand.
|
||||
Reference in New Issue
Block a user