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
}
{
type: playCardFromDrawDeck
select: choose(memory(revealedCards),knight)
showAll: false
shuffle: true
type: Repeat
times: {
type: ForEachInMemory
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
}
{
type: playCardFromDrawDeck
select: choose(memory(revealedCards),culture(rohan),possession)
showAll: false
shuffle: false
type: Repeat
times: {
type: ForEachInMemory
memory: revealedCards
filter: culture(rohan),possession
}
effect: {
type: playCardFromDrawDeck
select: choose(memory(revealedCards),culture(rohan),possession)
showAll: false
shuffle: false
}
}
{
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);
return new StackActionEffect(playCardAction);
} 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();
}
}

View File

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