Threats Undetected and support (#1455)

This commit is contained in:
Simisays
2022-09-03 13:56:48 +02:00
committed by GitHub
parent d02ab39f96
commit d95b5d2d08
2 changed files with 15 additions and 0 deletions

View File

@@ -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"))

View File

@@ -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.