mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Learn: add missing reveal
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user