巅峰赛修改

lvxinran 2020-12-23 01:10:55 +08:00
parent 5dc5ab2ae5
commit cda3ad53a7
1 changed files with 6 additions and 4 deletions

View File

@ -128,12 +128,14 @@ public class BloodLogic {
if(user!=null&&!user.getPokemonManager().getPokemonTeamMap().isEmpty()){
pokemonSkills = HeroLogic.getInstance().getPokemonSkills(UserManager.getUser(uid));
}
return CommonProto.FightTeamInfo.
CommonProto.FightTeamInfo.Builder builder = CommonProto.FightTeamInfo.
newBuilder()
.addAllFightUnitList(heroDefendFightInfos)
.addAllPokemonUnitList(pokemonSkills)
.setTeamPassiveList(passiveSkill)
.build();
.setTeamPassiveList(passiveSkill);
if(pokemonSkills != null){
builder.addAllPokemonUnitList(pokemonSkills);
}
return builder.build();
}