diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java index 2bb65771f..0fe2ec0b3 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/expedition/ExpeditionLogic.java @@ -905,19 +905,21 @@ public class ExpeditionLogic { } int i1 = ranndomFromWeight(cfg); SExpeditionRecruitConfig sExpeditionRecruitConfig = STableManager.getConfig(SExpeditionRecruitConfig.class).get(i1); - SCHero hero1 = SCHero.getsCHero().get(sExpeditionRecruitConfig.getHeroId()); - i++; - if(hero1==null){ - LOGGER.error("英雄配置不存在"+i1); - continue; - } - int propertyName = hero1.getPropertyName(); - if(tempType.contains(propertyName)){ - continue; - } + if(type == 1){ + SCHero hero1 = SCHero.getsCHero().get(sExpeditionRecruitConfig.getHeroId()); + i++; + if(hero1==null){ + LOGGER.error("英雄配置不存在"+i1); + continue; + } + int propertyName = hero1.getPropertyName(); + if(tempType.contains(propertyName)){ + continue; + } + tempType.add(propertyName); + } tempid.add(i1); - tempType.add(propertyName); i++; }