天地洪炉bug修改提交

back_recharge
yuanshuai 2022-01-10 13:42:45 +08:00
parent e9b492ee5d
commit 058cb045ce
1 changed files with 7 additions and 1 deletions

View File

@ -487,7 +487,13 @@ public class HeroLogic {
if (index >= count) {
return sLotteryRewardConfig.getReward();
}
if (user.getHeroManager().getTrumpSelectItemMap().size()==0){
HashMap<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < count; i++) {
map.put(i+1,list.get(i).getReward()[0]);
}
user.getHeroManager().setTrumpSelectItemMap(map);
}
if (!user.getHeroManager().getTrumpSelectItemMap().containsKey(index + 1)) {
return sLotteryRewardConfig.getReward();
}