养成:重生消耗
This commit is contained in:
@@ -619,9 +619,11 @@ export class HeroHandler {
|
|||||||
if(!hero) return resResult(STATUS.HERO_NOT_FIND);
|
if(!hero) return resResult(STATUS.HERO_NOT_FIND);
|
||||||
|
|
||||||
// 消耗
|
// 消耗
|
||||||
let cost = [getGoldObject(REBORN.REBORON_HERO)];
|
if(hero.lv >= REBORN.REBORON_FREE_LEVEL) {
|
||||||
let costResult = await handleCost(roleId, sid, cost, ITEM_CHANGE_REASON.REBIRTH);
|
let cost = [getGoldObject(REBORN.REBORON_HERO)];
|
||||||
if(!costResult) return resResult(STATUS.BATTLE_GOLD_NOT_ENOUGH);
|
let costResult = await handleCost(roleId, sid, cost, ITEM_CHANGE_REASON.REBIRTH);
|
||||||
|
if(!costResult) return resResult(STATUS.BATTLE_GOLD_NOT_ENOUGH);
|
||||||
|
}
|
||||||
|
|
||||||
// 皮肤处理
|
// 皮肤处理
|
||||||
let { skins, skinId, consumes, ce, scrollActive } = hero;
|
let { skins, skinId, consumes, ce, scrollActive } = hero;
|
||||||
|
|||||||
Reference in New Issue
Block a user