变身卡修改开启等级

back_recharge
duhui 2022-10-18 17:07:00 +08:00
parent a2641a596a
commit 13c77c0830
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ public class UpOrDownTransformationHandler extends BaseHandler<HeroInfoProto.UpO
if (index > values.length){
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE,"位置不存在");
}
int tLevel = user.getHeroManager().getTransformationForce()-1;
if (values[index-1] > tLevel){
int practiceLevel = user.getHeroManager().getPracticeLevel();
if (values[index-1] > practiceLevel){
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE,"变身卡位置未解锁,化身之力等级不足");
}
// 上阵变身卡