大闹天宫神将空位逻辑修改

back_recharge
lvxinran 2021-02-05 13:58:22 +08:00
parent 6ed7ee4b2f
commit a4077e200c
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
if (resultCode == -1) {
throw new ErrorCodeException(ErrorCode.FIGHT_EXCEPTION);
}
List<Integer> remainHp = new ArrayList<>(5);
List<Integer> remainHp = new ArrayList<>(6);
for (int i = 2; i < checkResult.length; i++) {
if (checkResult[i] <= 0) {
remainHp.add(0);
@ -207,7 +207,7 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
continue;
}
Map<Integer, Integer> heroAttributeMap = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, teamId);
double remain = remainHp.remove(0);
double remain = remainHp.get(teamPosHeroInfo.getPosition()-1);
user.getExpeditionManager().getHeroHPWithChange().put(teamPosHeroInfo.getHeroId(), remain / (double) heroAttributeMap.get(HeroAttributeEnum.CurHP.getPropertyId()));
ids.add(hero.getId());
if(remain==0d){