大闹天宫神将空位逻辑修改
parent
6ed7ee4b2f
commit
a4077e200c
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue