关卡:主线奖励宝箱不可多次领取

This commit is contained in:
luying
2022-08-13 13:49:37 +08:00
parent a42723b514
commit 0fa8e44351

View File

@@ -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);
}