关卡:修复星星为0时不记录bug
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user