back_recharge
wangyuan 2019-06-03 17:19:31 +08:00
parent 73dcc75efd
commit 454ec22a61
1 changed files with 4 additions and 0 deletions

View File

@ -952,6 +952,10 @@ public class HeroLogic {
//获取英雄所有属性
public Map<Integer,Integer> calHeroFinalAttributeWhenInMap(User user, Hero hero){
Map<Integer, Integer> heroAllAttribute = user.getMapManager().getHeroAllAttributeByHeroId(hero.getId());
if(heroAllAttribute == null){
heroAllAttribute=calHeroNotBufferAttribute(user, hero);
return heroAllAttribute;
}
//食物buffer加成
Map<Integer, Integer> foodAddMap = CombatLogic.getInstance().attributeByEatFood(user,GlobalsDef.FOOD_ADDITION_BATTLE_TYPE, GlobalsDef.FOOD_EAT_AFFECT_PERSON);
if(foodAddMap.isEmpty()){