猎妖英雄血量更新bug

zhangshanxue 2020-06-27 21:07:29 +08:00
parent 25ff3772e9
commit 7a3d99580c
2 changed files with 5 additions and 2 deletions

View File

@ -138,11 +138,11 @@ public class EndConfirmExpeditionBattleRequestHandler extends BaseHandler<Expedi
if (hero == null&&herotemp==null) {
continue;
}
if(null==hero)
hero=herotemp;
user.getExpeditionManager().getHeroHPWithChange().put(hero.getId(), 0d);
ids.add(hero.getId());
}
//出队伍
user.getTeamPosManager().updateTeamPosByTeamId(1001,new LinkedList<>());

View File

@ -136,6 +136,9 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
if (hero == null&&herotemp==null) {
continue;
}
if(hero==null){
hero=herotemp;
}
user.getExpeditionManager().getHeroHPWithChange().put(hero.getId(), 0d);
ids.add(hero.getId());
}