寻宝:boss已死时报错

This commit is contained in:
luying
2021-08-20 16:59:24 +08:00
parent 926ed5b69c
commit 7db913ec1e

View File

@@ -473,7 +473,7 @@ export class ComBattleHandler {
if (teamStatus.status !== COM_TEAM_STATUS.FIGHTING) return resResult(STATUS.COM_BATTLE_NOT_START);
for (let st of teamStatus.roleStatus) {
if (st.roleId === roleId && (!st.heroes || st.heroes.length === 0)) {
return resResult(STATUS.COM_BATTLE_HEROES_ERR);
return resResult(STATUS.SUCCESS);
}
}
// 重置总血量,计算真实伤害