战力:修复bug

This commit is contained in:
luying
2021-08-14 13:45:53 +08:00
parent 231da09528
commit b118eebaed
4 changed files with 21 additions and 40 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ export function checkEquipCanPut(hid: number, id: number) {
let dicHero = gameData.hero.get(hid);
let dicJob = gameData.job.get(dicHero.jobid);
if(dicGood.jobLimited.indexOf(0) == -1 && dicGood.jobLimited.indexOf(dicJob.job_class) == -1) return false;
if(dicGood.charLimited.indexOf(0) == -1 && dicGood.charLimited.indexOf(hid) != -1) return false;
if(dicGood.charLimited.indexOf(0) == -1 && dicGood.charLimited.indexOf(hid) == -1) return false;
return true
}