🐞 fix(副将): 名将擂台判断副将错误

This commit is contained in:
luying
2023-07-19 14:42:17 +08:00
parent 0c6bea6ad1
commit aa6240cb65
3 changed files with 3 additions and 3 deletions

View File

@@ -876,7 +876,7 @@ export async function checkGVGLineupWhenSave(roleId: string, index: number, line
const teams = await GVGTeamModel.findByRole(roleId, '-_id index lineup');
for(let { actorId, subHid } of lineup) {
let dicHero = gameData.hero.get(actorId);
if(!dicHero || dicHero.urType != 1) return STATUS.HERO_CAN_NOT_SET_SUB;
if(subHid && (!dicHero || dicHero.urType != 1)) return STATUS.HERO_CAN_NOT_SET_SUB;
for(let team of teams) {
// 查actorId没有在其他队伍中使用