From e931da7ce04b4a2e98a9fbf9b8d3bc7a906791f8 Mon Sep 17 00:00:00 2001 From: Magpie Date: Thu, 5 May 2022 14:00:43 +0200 Subject: [PATCH] Adventure mode - Revert RNG Fix call that assumed MyRandom. --- forge-gui-mobile/src/forge/adventure/data/RewardData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-gui-mobile/src/forge/adventure/data/RewardData.java b/forge-gui-mobile/src/forge/adventure/data/RewardData.java index d586446124c..47af5a48971 100644 --- a/forge-gui-mobile/src/forge/adventure/data/RewardData.java +++ b/forge-gui-mobile/src/forge/adventure/data/RewardData.java @@ -95,7 +95,7 @@ public class RewardData { if(probability == 0 || WorldSave.getCurrentSave().getWorld().getRandom().nextFloat() <= probability) { if(type==null || type.isEmpty()) type="randomCard"; - int addedCount = WorldSave.getCurrentSave().getWorld().getRandom().nextInt(addMaxCount); + int addedCount = (int)((float)(addMaxCount)* WorldSave.getCurrentSave().getWorld().getRandom().nextFloat()); if( colors != null && colors.length > 0 ) { //Filter special "colorID" case. String C = Current.player().getColorIdentityLong(); for(int i = 0; i < colors.length; i++){