无尽修改

back_recharge
lvxinran 2020-08-28 04:29:41 +08:00
parent f078d184f0
commit b96da4ee17
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ public class EndlessMap extends AbstractMap{
Hero hero = user.getHeroManager().getHero(team.get(i).getHeroId());
Map<Integer, Integer> heroAllAttribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero,false,GlobalsDef.ENDLESS_TEAM);
int per = (int)(checkResult[position+1] / (double) heroAllAttribute.get(HeroAttributeEnum.Hp.getPropertyId())*10000);
if(checkResult[i+1]>0&&per<=0){
if(checkResult[position+1]>0&&per<=0){
per = 1;
}
mapManager.updateEndlessHeroHp(team.get(i).getHeroId(),per);