猎妖之路节点生成错误

DESKTOP-98AVA47\Administrator 2020-09-24 21:43:09 +08:00
parent 22a5668ac2
commit 1fa16cadd0
1 changed files with 13 additions and 11 deletions

View File

@ -905,6 +905,8 @@ public class ExpeditionLogic {
}
int i1 = ranndomFromWeight(cfg);
SExpeditionRecruitConfig sExpeditionRecruitConfig = STableManager.getConfig(SExpeditionRecruitConfig.class).get(i1);
if(type == 1){
SCHero hero1 = SCHero.getsCHero().get(sExpeditionRecruitConfig.getHeroId());
i++;
if(hero1==null){
@ -915,9 +917,9 @@ public class ExpeditionLogic {
if(tempType.contains(propertyName)){
continue;
}
tempid.add(i1);
tempType.add(propertyName);
}
tempid.add(i1);
i++;
}