- ChangeZoneAi will now use the PlayerController reveal function instead of GuiChoose

This commit is contained in:
Sol
2013-05-25 21:28:02 +00:00
parent fa833f79c2
commit 3bdf8d95cc

View File

@@ -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