From 6717ca52360d96b9085f31c7e1993ebe87e061e9 Mon Sep 17 00:00:00 2001 From: xinian Date: Sat, 21 Mar 2026 01:01:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E9=A2=86=E5=8F=96=E5=A5=96=E5=8A=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/controller/action_炫彩碎片.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/logic/controller/action_炫彩碎片.go b/logic/controller/action_炫彩碎片.go index 1b0b424ca..8e8d5f905 100644 --- a/logic/controller/action_炫彩碎片.go +++ b/logic/controller/action_炫彩碎片.go @@ -55,9 +55,11 @@ func (h Controller) GET_XUANCAI(data *C2s_GET_XUANCAI, c *player.Player) (result // 检查该位是否未被选中(避免重复) if (result.Status & mask) == 0 { - c.ItemAdd(400686+int64(randBitIdx)+1, 1) - result.Status |= mask // 标记该位为选中 - selectedCount++ // 选中数+1 + if c.ItemAdd(400686+int64(randBitIdx)+1, 1) { + result.Status |= mask // 标记该位为选中 + } + + selectedCount++ // 选中数+1 } } return