寻宝:修复藏宝图不足bug

This commit is contained in:
luying
2021-12-23 14:37:59 +08:00
parent d9e48a79a6
commit ffac207921

View File

@@ -264,7 +264,7 @@ export async function handleComBtlProgress(teamStatus: MemComBtlTeam, robotHurtT
if (result && teamStatus.capId != 'robot') {
const { sid } = channel.getMember(teamStatus.capId);
let res = await handleCost(teamStatus.capId, sid, [{ id: teamStatus.blueprtId, count: 1 }], ITEM_CHANGE_REASON.COM_BATTLE_USE_BLUEPRT);
if (res === true) return resResult(STATUS.COM_BATTLE_BLUEPRT_NOT_ENOUGH);
if (res === false) return resResult(STATUS.COM_BATTLE_BLUEPRT_NOT_ENOUGH);
}
// // 为了背包显示,队长藏宝图在创建队伍的时候就扣掉了,如果输了,返还藏宝图
// if (!result && teamStatus.capId != 'robot') {