鸿蒙阵

back_recharge
jiahuiwen 2020-12-21 14:47:20 +08:00
parent 6a1faf574c
commit 5776065109
1 changed files with 5 additions and 1 deletions

View File

@ -3855,9 +3855,13 @@ public class HeroLogic{
LOGGER.info("addHongmengTableHero uid=>{} the heroId=>{} is HongmengGuard", user.getId(), heroId);
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
}
if (heroManager.getResonances().values().contains(heroId)) {
LOGGER.info("addHongmengTableHero uid=>{} the heroId=>{} is Resonances", user.getId(), heroId);
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
}
Map<Integer, String> resonances = heroManager.getHongmengGuards();
String resonanceInfo = resonances.get(index);
if (resonanceInfo == null || resonanceInfo.isEmpty()) {
if (resonanceInfo != null && !resonanceInfo.isEmpty()) {
LOGGER.info("addHongmengTableHero uid=>{} not hero key=>{}", user.getId(), index);
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE_SELF);
}