关卡:修复星星为0时不记录bug

This commit is contained in:
luying
2021-11-03 16:24:57 +08:00
parent 5637c0e20c
commit 0f0ca0ddf5

View File

@@ -245,7 +245,7 @@ export class NormalBattleHandler {
warReward.setCondition(1, true);
}
if (newStar > (curWarStar?.star||0)) {
if (!curWarStar || newStar > curWarStar.star) {
await RoleModel.updateRoleInfo(roleId, { warStar: newWarStars });
}
}