校验星级
parent
004cfbe4f0
commit
88d9ee72cb
|
|
@ -320,7 +320,10 @@ public class HeroLogic {
|
|||
}
|
||||
if(scHeroRankUpConfigByTypeStar!=null){
|
||||
SCHeroRankUpConfig scHeroRankUpConfigStar = scHeroRankUpConfigByTypeStar.get(hero.getStar());
|
||||
if(hero.getLevel()+1 > scHeroRankUpConfigStar.getLimitLevel() && hero.getStar() < scHeroRankUpConfigStar.getOpenStar()){
|
||||
if(scHeroRankUpConfigStar == null){
|
||||
scHeroRankUpConfigStar = scHeroRankUpConfigByTypeStar.get(hero.getStar() -1);
|
||||
}
|
||||
if(scHeroRankUpConfigStar == null || (hero.getLevel()+1 > scHeroRankUpConfigStar.getLimitLevel() && hero.getStar() < scHeroRankUpConfigStar.getOpenStar())){
|
||||
MessageUtil.sendErrorResponse(session,0,MessageTypeProto.MessageType.UP_HERO_LEVEL_RESPONSE_VALUE,"max level");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue