寻宝:单排玩家强退

This commit is contained in:
luying
2021-08-17 17:45:52 +08:00
parent e81a9b67db
commit a785644cbb
5 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export function checkComBattleResult(teamStatus) {
// 看看是否还有活人
teamStatus.roleStatus.forEach(st => {
// 设置了阵容,且阵容人数和阵亡人数一样,说明玩家战败
if (!st.isRobot && st.heroes && ((st.heroes.length > 0 && st.killed.length < st.heroes.length) || st.heroes.length === 0)) {
if (!st.isRobot && st.battleStatus != 2 && st.heroes && ((st.heroes.length > 0 && st.killed.length < st.heroes.length) || st.heroes.length === 0 )) {
allPlayerKilled = false
}
});