fix herologic

back_recharge
wangyuan 2019-09-20 17:11:44 +08:00
parent c0aa602e21
commit 6296f1e1ed
1 changed files with 1 additions and 5 deletions

View File

@ -1301,11 +1301,7 @@ public class HeroLogic {
public int calHeoForce(User user, Hero hero,boolean isMyself){
Map<Integer, Integer> heroAllAttribute;
if(!isMyself || user.getMapManager().getCurMapId() == 0){
heroAllAttribute=calHeroNotBufferAttribute(user, hero,true,0);
}else{
heroAllAttribute = calHeroFinalAttributeWhenInMap(user, hero,true,0);
}
heroAllAttribute = calHeroFinalAttributeWhenInMap(user, hero,true,0);
//战力保存
int force = calForce(heroAllAttribute);
return force + heroAllAttribute.get(HeroAttributeEnum.EquipForce.getPropertyId());