寻宝:修复退队时候自动解散功能无

This commit is contained in:
luying
2022-07-26 12:49:04 +08:00
parent 528a862d1c
commit 61ecdaa5f3

View File

@@ -364,12 +364,12 @@ export class ComBattleHandler {
if (validToJoin(curTeamStatus)) {
let roleSt: RoleStatus;
for (let st of curTeamStatus.roleStatus) {
if (st.roleId === roleId) {
if (st.isCap) {
roleSt = st;
}
}
if (!roleSt) return;
let { topLineupCe, lv } = roleSt;
let { roleId, topLineupCe, lv } = roleSt;
await addRobotsToTeam(curTeamStatus, roleId, topLineupCe, lv, thiz.teamMap, thiz.teamDisTimer, 3 - curTeamStatus.roleIds.length);
}
}, COM_BTL_CONST.ASSIST_TIME);