特权逻辑修改

master_dev
grimm 2024-02-23 23:46:53 +08:00
parent e3d0b77bac
commit 1c2a27a128
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public class HeroLogic {
HeroManager heroManager = user.getHeroManager();
Set<Integer> mustSet = new HashSet<>();
Map<Integer, Map<Integer, Integer>> randomPoolByType = heroManager.getRandomPoolByType();
Map<Integer, Integer> poolRandom = randomPoolByType.get(mergePool);
Map<Integer, Integer> poolRandom = randomPoolByType.getOrDefault(mergePool,new HashMap<>());
//设置用户必出计数器
if (specialConfigs != null && !specialConfigs.isEmpty()) {
if (!randomPoolByType.containsKey(mergePool)) {