装备:修复分解消耗bug

This commit is contained in:
luying
2021-08-09 14:48:27 +08:00
parent 6a95f1c7e3
commit d28443e2de
3 changed files with 5 additions and 5 deletions

View File

@@ -550,7 +550,7 @@ export class EquipHandler {
jewels.push({ id: jewel, count: 1 });
}
goods = goods.concat(goodInfo.decomposeItem);
cost.push({ seqId: equip.seqId });
cost.push({ seqId: equip.seqId, id: equip.id, count: 1 });
}
let costResult = await handleCost(roleId, sid, cost); // 删掉装备
if(!costResult) return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);