战力不一致问题处理

master_0.05_yj
grimm 2024-05-10 11:15:10 +08:00
parent d7880d1c9b
commit 6a27a0bd38
1 changed files with 13 additions and 16 deletions

View File

@ -768,19 +768,19 @@ public class CombatLogic {
List<Integer> passiveTeamskillEffect = new ArrayList<>();
for(TeamPosHeroInfo teamPosHeroInfo :teamPosHeroInfos){
Hero hero = user.getHeroManager().getHero(teamPosHeroInfo.getHeroId());
if (hero == null && teamId != TeamEnum.EXPEDITION_TEAM.getTeamId()){
continue;
}
else{
// 大脑天宫
if (!user.getExpeditionManager().getHeroMap().containsKey(teamPosHeroInfo.getHeroId())){
continue;
}
if (hero == null){
//大闹天宫
if (teamId==TeamEnum.EXPEDITION_TEAM.getTeamId()){
if (user.getExpeditionManager().getHeroMap().containsKey(teamPosHeroInfo.getHeroId())){
hero = user.getExpeditionManager().getHeroMap().get(teamPosHeroInfo.getHeroId());
}else {
continue;
}
}
}
if (hero == null) {
continue;
}
}
List<Integer> heroSkillListTmp = HeroLogic.getInstance().getHeroSkillList(user, hero);
for (Integer skill : heroSkillListTmp) {
SPassiveSkillLogicConfig config = SPassiveSkillLogicConfig.getConfig(skill);
@ -826,9 +826,6 @@ public class CombatLogic {
continue;
}
Hero hero = user.getHeroManager().getHero(key.getHeroId());
if (hero == null){
continue;
}
heroFind.add(hero);
}