mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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) {
|
public void reveal(CardCollectionView cards, Player cardOwner) {
|
||||||
reveal(cards, cardOwner, true);
|
reveal(cards, cardOwner, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner) {
|
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner) {
|
||||||
reveal(cards, cardOwner, dontRevealToOwner, null);
|
reveal(cards, cardOwner, dontRevealToOwner, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
|
public void reveal(CardCollectionView cards, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
|
||||||
Card firstCard = Iterables.getFirst(cards, null);
|
Card firstCard = Iterables.getFirst(cards, null);
|
||||||
if (firstCard == null) {
|
if (firstCard == null) {
|
||||||
@@ -1866,7 +1864,6 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
reveal(cards, game.getZoneOf(firstCard).getZoneType(), cardOwner, dontRevealToOwner, messagePrefix);
|
reveal(cards, game.getZoneOf(firstCard).getZoneType(), cardOwner, dontRevealToOwner, messagePrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reveal(CardCollectionView cards, ZoneType zt, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
|
public void reveal(CardCollectionView cards, ZoneType zt, Player cardOwner, boolean dontRevealToOwner, String messagePrefix) {
|
||||||
for (Player p : game.getPlayers()) {
|
for (Player p : game.getPlayers()) {
|
||||||
if (dontRevealToOwner && cardOwner == p) {
|
if (dontRevealToOwner && cardOwner == p) {
|
||||||
|
|||||||
@@ -3437,6 +3437,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (c.isInZone(ZoneType.Sideboard)) { // Sideboard Lesson to Hand
|
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);
|
Card moved = game.getAction().moveTo(ZoneType.Hand, c, sa);
|
||||||
table.put(ZoneType.Sideboard, ZoneType.Hand, moved);
|
table.put(ZoneType.Sideboard, ZoneType.Hand, moved);
|
||||||
} else if (c.isInZone(ZoneType.Hand)) { // Discard and Draw
|
} else if (c.isInZone(ZoneType.Hand)) { // Discard and Draw
|
||||||
|
|||||||
Reference in New Issue
Block a user