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