yx跨服属性

back_recharge
xuexinpeng 2021-10-15 21:06:25 +08:00
parent 5c68ad2738
commit 032c48c8b5
1 changed files with 6 additions and 1 deletions

View File

@ -228,7 +228,12 @@ public class CoreService implements RPCRequestIFace.Iface {
if (collect.isEmpty()){
continue;
}
Map<Integer, Long> attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, true, teamId);
Map<Integer, Long> attribute;
if(teamId == GlobalsDef.FORMATION_NORMAL){
attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, teamId);
}else{
attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, true, teamId);
}
if(arenaOfHero.getAttributeMapByTeam() == null){
arenaOfHero.setAttributeMapByTeam(new HashMap<>());
}