fix 训练小阶解锁等级应该以当前兵种为准

This commit is contained in:
luying
2020-12-15 17:08:29 +08:00
parent e877b0190d
commit 275ce6a6fb
2 changed files with 5 additions and 5 deletions
@@ -273,7 +273,7 @@ export class HeroHandler {
if (!hero)
return resResult(STATUS.HERO_NOT_FIND);
let heroJob = gameData.job.get(hero.job);
let nextHeroJob = getJobByGradeAndClass(heroJob.job_class, heroJob.grade + 1);
let nextHeroJob = getJobByGradeAndClass(heroJob.job_class, heroJob.grade);
if (nextHeroJob.unlockLevel > hero.lv)
return resResult(STATUS.NOT_REACH_UNLOCK_LEVEL);
if (hero.jobStage >= 6)