脚本优化

back_recharge
yuanshuai 2021-12-13 17:34:19 +08:00
parent bdc1aa723a
commit 9a2bf80a9b
1 changed files with 2 additions and 2 deletions

View File

@ -3019,7 +3019,7 @@ public class HeroLogic {
}
Map<Integer, Long> heroSkillAdMap = new HashMap<>();
heroSkillList.forEach(skill -> {
for (Integer skill : heroSkillList) {
SPassiveSkillLogicConfig config = SPassiveSkillLogicConfig.getConfig(skill);
if (null != config.getValue() && config.getValue().length > 2 && config.getValue()[2] != 4) {
PassiveskillCalEnum passiveskillCalEnum = PassiveskillCalEnum.calEnumMap.get(config.getType());
@ -3027,7 +3027,7 @@ public class HeroLogic {
passiveskillCalEnum.getPassiveSkillProcessor().process(config, hero, heroSkillAdMap);
}
}
});
}
if (!heroSkillAdMap.isEmpty()) {
combinedAttribute(heroSkillAdMap, heroAllAttribute);