From bdfcb6001ae409a98b6db399e8d29167e0f5d147 Mon Sep 17 00:00:00 2001 From: "ZM.J" Date: Wed, 17 Jul 2024 17:35:15 +0800 Subject: [PATCH] Fix refreshTalent --- models/avatar/MysAvatar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/avatar/MysAvatar.js b/models/avatar/MysAvatar.js index 844cc239..54befc8c 100644 --- a/models/avatar/MysAvatar.js +++ b/models/avatar/MysAvatar.js @@ -209,7 +209,10 @@ const MysAvatar = { if (!avatar) { return false } - if (avatar.isMaxTalent || failCount > 5) { + // TODO: 不能直接用 avatar.isMaxTalent 判断 + // 此处的 avatar.promote 还是更新前的 + // e.g. 有人之前 80 级未突破,天赋8 8 8,但是之后 80 突破,天赋9 9 9 + if (failCount > 5) { avatar.setTalent(false, 'original', true) return false }