寻宝:修改阵亡判断
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user