升星法宝报错 和 法宝穿戴bug
parent
43943aeed3
commit
42917b3043
|
@ -1939,9 +1939,13 @@ public class HeroLogic{
|
|||
|
||||
private void wearJewel(Hero hero,EquipManager equipManager,String equipId)throws Exception{
|
||||
Jewel equip =(Jewel)equipManager.getEquipMap().get(equipId);
|
||||
|
||||
if( null == equip || null == hero ){
|
||||
throw new ErrorCodeException(ErrorCode.HERO_EQUIP_ERR);
|
||||
}
|
||||
if(null!=equip.getHeroId()&&!equip.getHeroId().equals("")){
|
||||
return;
|
||||
}
|
||||
|
||||
String remove = "";
|
||||
for(String jewelId:hero.getJewelInfo()){
|
||||
|
@ -2553,7 +2557,8 @@ public class HeroLogic{
|
|||
if(soulEquipByPositionMap!=null&&soulEquipByPositionMap.size()>0){
|
||||
soulEquipByPositionMap.forEach((k,v)->returnItemMap.put(v,returnItemMap.getOrDefault(v,0)+1));
|
||||
}
|
||||
Set<String> jewelInfo = hero.getJewelInfo();
|
||||
|
||||
Set<String> jewelInfo = new HashSet<>(hero.getJewelInfo());
|
||||
for(String equipId:jewelInfo){
|
||||
if(!equipMap.containsKey(equipId)){
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue