寻宝:修改阵亡判断

This commit is contained in:
liangtongchuan
2020-12-03 16:18:37 +08:00
parent 64e6a58ee9
commit f2a62f2334
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export function checkComBattleResult(teamStatus) {
// 看看是否还有活人
teamStatus.roleStatus.forEach(st => {
// 设置了阵容,且阵容人数和阵亡人数一样,说明玩家战败
if (!st.isRobot && st.heroes && st.heroes.length > 0 && st.killed.length < st.heroes.length) {
if (!st.isRobot && st.heroes && ((st.heroes.length > 0 && st.killed.length < st.heroes.length) || st.heroes.length === 0)) {
allPlayerKilled = false
}
});