fix Druid of the Emerald Grove (#10583)

10-19 locked the game in a choose action with no choice.
20 was broken due to a wrong boolean logic.
This commit is contained in:
Susucre 2023-07-08 05:10:52 +02:00 committed by GitHub
parent 4a3070e6db
commit eaa0de0877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ class DruidOfTheEmeraldGroveEffect extends RollDieWithResultTableEffect {
break;
default:
TargetCard target = new TargetCardInLibrary();
player.choose(outcome, target, source, game);
player.choose(outcome, cards, target, source, game);
card = cards.get(target.getFirstTarget(), game);
}
if (card != null) {
@ -119,7 +119,7 @@ class DruidOfTheEmeraldGroveEffect extends RollDieWithResultTableEffect {
cards.remove(card);
}
player.moveCards(cards, Zone.HAND, source, game);
} else if (amount != 20) {
} else {
player.moveCards(
cards.getCards(game), Zone.BATTLEFIELD, source, game,
true, false, false, null