Learn: add missing reveal

This commit is contained in:
tool4EvEr
2022-02-17 20:29:00 +01:00
parent 738afacbf7
commit b91a29ba31
2 changed files with 1 additions and 3 deletions

View File

@@ -1854,11 +1854,9 @@ public class GameAction {
public void reveal(CardCollectionView cards, Player cardOwner) {
reveal(cards, cardOwner, true);
}
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner) {
reveal(cards, cardOwner, dontRevealToOwner, null);
}
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
Card firstCard = Iterables.getFirst(cards, null);
if (firstCard == null) {
@@ -1866,7 +1864,6 @@ public class GameAction {
}
reveal(cards, game.getZoneOf(firstCard).getZoneType(), cardOwner, dontRevealToOwner, messagePrefix);
}
public void reveal(CardCollectionView cards, ZoneType zt, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
for (Player p : game.getPlayers()) {
if (dontRevealToOwner && cardOwner == p) {

View File

@@ -3437,6 +3437,7 @@ public class Player extends GameEntity implements Comparable<Player> {
return;
}
if (c.isInZone(ZoneType.Sideboard)) { // Sideboard Lesson to Hand
game.getAction().reveal(new CardCollection(c), c.getOwner(), true);
Card moved = game.getAction().moveTo(ZoneType.Hand, c, sa);
table.put(ZoneType.Sideboard, ZoneType.Hand, moved);
} else if (c.isInZone(ZoneType.Hand)) { // Discard and Draw