增加法相容错
parent
57806bd9c5
commit
86217b7bca
|
@ -3122,8 +3122,13 @@ public class HeroLogic {
|
|||
if (!faxiangList.isEmpty()) {
|
||||
for (String id : faxiangList) {
|
||||
PropertyItem faxiang = equipManager.getEquip(id);
|
||||
if(faxiang == null){
|
||||
continue;
|
||||
}
|
||||
SFaxiangConfig config = SFaxiangConfig.faxiangMap.get(faxiang.getEquipId());
|
||||
|
||||
if(config == null){
|
||||
continue;
|
||||
}
|
||||
// 潜能加成
|
||||
int potentialType = config.getType() == 0 ? 7 : 8;
|
||||
int potentialBuff = getPotentialBuff(user, hero, potentialType);
|
||||
|
|
|
@ -1038,8 +1038,10 @@ public class PlayerLogic {
|
|||
// 法相
|
||||
for(String key : hero.getFaxiangList()){
|
||||
PropertyItem faxiang = equipManager.getEquip(key);
|
||||
if(faxiang != null){
|
||||
builder.addEquip(CBean2Proto.getPropertyEquipProto(faxiang));
|
||||
}
|
||||
}
|
||||
// 法宝
|
||||
Baubles baubles = equipManager.getBaubles(hero.getBauBlesId());
|
||||
if (baubles != null){
|
||||
|
|
Loading…
Reference in New Issue