英雄穿装备错误校验删除
parent
0d0acca185
commit
c715f31468
|
@ -1807,7 +1807,7 @@ 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 ||hero.getJewelInfo().contains(equipId)){
|
||||
if( null == equip || null == hero ){
|
||||
throw new ErrorCodeException(ErrorCode.HERO_EQUIP_ERR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue