🐞 fix(副将): gvg激战期阵容保存校验错误

This commit is contained in:
luying
2023-07-22 17:54:09 +08:00
parent 6b066ad5a4
commit d9dbf15788
3 changed files with 22 additions and 9 deletions
@@ -163,6 +163,9 @@ export async function checkHeroIsUsedInOtherVestige(roleId: string, curVestigeId
// 查副将
if(subHid) {
if(usedHeroes.indexOf(subHid) != -1) return true;
let hasSubHero = heroes.find(hero => hero.actorId == subHid);
if(hasSubHero) return true;
}
}
return false;