Fixed set 8 Eomer and Faramir only playing 1 revealed card. Added Now For Wrath unit test.

This commit is contained in:
Christian 'ketura' McCarty
2024-11-08 19:41:06 -06:00
parent 408b0e7247
commit b69097c4e5
4 changed files with 29 additions and 10 deletions

View File

@@ -201,10 +201,21 @@
memorize: revealedCards memorize: revealedCards
} }
{ {
type: playCardFromDrawDeck type: Repeat
select: choose(memory(revealedCards),knight) times: {
showAll: false type: ForEachInMemory
shuffle: true memory: revealedCards
filter: knight
}
effect: {
type: playCardFromDrawDeck
select: choose(memory(revealedCards),knight)
showAll: false
shuffle: false
}
}
{
type: shuffleDeck
} }
] ]
} }

View File

@@ -140,10 +140,18 @@
memorize: revealedCards memorize: revealedCards
} }
{ {
type: playCardFromDrawDeck type: Repeat
select: choose(memory(revealedCards),culture(rohan),possession) times: {
showAll: false type: ForEachInMemory
shuffle: false memory: revealedCards
filter: culture(rohan),possession
}
effect: {
type: playCardFromDrawDeck
select: choose(memory(revealedCards),culture(rohan),possession)
showAll: false
shuffle: false
}
} }
{ {
type: shuffleDeck type: shuffleDeck

View File

@@ -68,7 +68,7 @@ public class PlayCardFromDrawDeck implements EffectAppenderProducer {
final CostToEffectAction playCardAction = PlayUtils.getPlayCardAction(actionContext.getGame(), cardsToPlay.iterator().next(), costModifier, onFilterable, false); final CostToEffectAction playCardAction = PlayUtils.getPlayCardAction(actionContext.getGame(), cardsToPlay.iterator().next(), costModifier, onFilterable, false);
return new StackActionEffect(playCardAction); return new StackActionEffect(playCardAction);
} else { } else {
// This will notify any effect that uses playing from deck as a cost, that the cost was not "payed" // This will notify any effect that uses playing from deck as a cost, that the cost was not "paid"
return new FailedEffect(); return new FailedEffect();
} }
} }

View File

@@ -57,7 +57,7 @@ public class Card_V2_051_Tests
} }
@Test @Test
public void NowforWrathTest1() throws DecisionResultInvalidException, CardNotFoundException { public void NowforWrathReactsToReconciledPossessionDiscard() throws DecisionResultInvalidException, CardNotFoundException {
//Pre-game setup //Pre-game setup
var scn = GetScenario(); var scn = GetScenario();