fix special

back_recharge
wangyuan 2019-08-12 12:16:20 +08:00
parent cff26b2110
commit a076812220
1 changed files with 6 additions and 2 deletions

View File

@ -159,12 +159,14 @@ public class HeroLogic {
}
}
boolean isSpecial = false;
if(sLotterySetting.getOrderBoxPool()!=null && sLotterySetting.getOrderBoxPool().length>0){
pooId = getOrderBoxPoolId(sLotterySetting);
if(pooId == 0){
MessageUtil.sendErrorResponse(session, 0, MessageTypeProto.MessageType.HERO_RAND_RESPONSE_VALUE,"");
return;
}
isSpecial =true;
}
//检验消耗
@ -215,7 +217,10 @@ public class HeroLogic {
if(reward!=null){
dropHeroAndItem[j++] = reward;
}
pooId=0;
if(!isSpecial){
pooId=0;
}
}
//1群英招募
@ -911,7 +916,6 @@ public class HeroLogic {
}
public Map<Integer,Integer> calHeroNotBufferAttribute(User user, Hero hero,boolean isForce,int teamId){
LOGGER.info("cal herotid = {}",hero.getTemplateId());
Map<Integer, Integer> heroAllAttribute = calHeroAllAttribute(hero,isForce);
heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(),heroAllAttribute.get(GlobalsDef.HP_TYPE));
Collection<String> values = hero.getEquipByPositionMap().values();