mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- ChangeZoneAi will now use the PlayerController reveal function instead of GuiChoose
This commit is contained in:
@@ -1346,10 +1346,12 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
||||
|| (sa.hasParam("Reveal") && !fetched.isEmpty()))
|
||||
&& !sa.hasParam("NoReveal")) {
|
||||
final String picked = player + " picked:";
|
||||
if (fetched.size() > 0) {
|
||||
GuiChoose.one(picked, fetched);
|
||||
} else {
|
||||
GuiChoose.one(picked, new String[] { "<Nothing>" });
|
||||
|
||||
List<Player> otherPlayers = game.getPlayers();
|
||||
for (Player p : otherPlayers) {
|
||||
if (!p.equals(player)) {
|
||||
p.getController().reveal(picked, fetched, destination, player);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end changeHiddenOriginResolveAI
|
||||
|
||||
Reference in New Issue
Block a user