mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed random AI profile selection in non-Quest games.
This commit is contained in:
@@ -56,8 +56,8 @@ public final class GamePlayerUtil {
|
|||||||
String lastProfileChosen = FModel.getPreferences().getPref(FPref.UI_CURRENT_AI_PROFILE);
|
String lastProfileChosen = FModel.getPreferences().getPref(FPref.UI_CURRENT_AI_PROFILE);
|
||||||
player.setRotateProfileEachGame(lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_DUEL));
|
player.setRotateProfileEachGame(lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_DUEL));
|
||||||
if (lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_MATCH)) {
|
if (lastProfileChosen.equals(AiProfileUtil.AI_PROFILE_RANDOM_MATCH)) {
|
||||||
lastProfileChosen = "Default";
|
lastProfileChosen = AiProfileUtil.getRandomProfile();
|
||||||
System.out.println(String.format("AI profile %s was chosen for the lobby player %s.", lastProfileChosen, player.getName()));
|
//System.out.println(String.format("AI profile %s was chosen for the lobby player %s.", lastProfileChosen, player.getName()));
|
||||||
}
|
}
|
||||||
player.setAiProfile(lastProfileChosen);
|
player.setAiProfile(lastProfileChosen);
|
||||||
player.setAvatarIndex(avatarIndex);
|
player.setAvatarIndex(avatarIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user