From 0fa8e443510f3a19eb08cafb1bb9e4c812e0cb7d Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 13 Aug 2022 13:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=EF=BC=9A=E4=B8=BB=E7=BA=BF?= =?UTF-8?q?=E5=A5=96=E5=8A=B1=E5=AE=9D=E7=AE=B1=E4=B8=8D=E5=8F=AF=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E9=A2=86=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/normalBattleHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/servers/battle/handler/normalBattleHandler.ts b/game-server/app/servers/battle/handler/normalBattleHandler.ts index 14d9a1800..1c33f4d9a 100644 --- a/game-server/app/servers/battle/handler/normalBattleHandler.ts +++ b/game-server/app/servers/battle/handler/normalBattleHandler.ts @@ -478,7 +478,7 @@ export class NormalBattleHandler { for(let id of boxIds) { let dicBox = gameData.mainBox.get(id); if(dicBox && dicBox.chapter == chapter && dicBox.warType == warType) { - if(star >= dicBox.star) { + if(star >= dicBox.star && role.receivedBox.indexOf(id) == -1) { rewards.push(...dicBox.reward); ids.push(id); }