宝物分解bug
parent
daa339ee54
commit
7961a40690
|
@ -336,8 +336,11 @@ public class ItemLogic {
|
|||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_NO_EQUIP);
|
||||
}
|
||||
PropertyItem propertyItem = equipMap.get(jewelId);
|
||||
if (!StringUtil.isEmpty(propertyItem.getHeroId())&&user.getHeroManager().getHero(propertyItem.getHeroId())!=null) {
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_SOULE_CANT);
|
||||
if (!StringUtil.isEmpty(propertyItem.getHeroId())) {
|
||||
Hero hero = user.getHeroManager().getHero(propertyItem.getHeroId());
|
||||
if (hero != null && hero.getJewelInfo().contains(jewelId)) {
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_DECOMPOSE_SOULE_CANT);
|
||||
}
|
||||
}
|
||||
Jewel jewel = (Jewel) propertyItem;
|
||||
SJewelConfig config = STableManager.getConfig(SJewelConfig.class).get(propertyItem.getEquipId());
|
||||
|
|
Loading…
Reference in New Issue