mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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("Reveal") && !fetched.isEmpty()))
|
||||||
&& !sa.hasParam("NoReveal")) {
|
&& !sa.hasParam("NoReveal")) {
|
||||||
final String picked = player + " picked:";
|
final String picked = player + " picked:";
|
||||||
if (fetched.size() > 0) {
|
|
||||||
GuiChoose.one(picked, fetched);
|
List<Player> otherPlayers = game.getPlayers();
|
||||||
} else {
|
for (Player p : otherPlayers) {
|
||||||
GuiChoose.one(picked, new String[] { "<Nothing>" });
|
if (!p.equals(player)) {
|
||||||
|
p.getController().reveal(picked, fetched, destination, player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // end changeHiddenOriginResolveAI
|
} // end changeHiddenOriginResolveAI
|
||||||
|
|||||||
Reference in New Issue
Block a user