关卡:每日秘境失败不扣次数
This commit is contained in:
@@ -170,7 +170,7 @@ export class NormalBattleHandler {
|
||||
let dungeonNum = {};
|
||||
|
||||
if (warInfo.warType == WAR_TYPE.DAILY) {
|
||||
let checkResult = await checkDailyAndIncrease(roleId, warStar, battleId, 1, false, stars);
|
||||
let checkResult = await checkDailyAndIncrease(roleId, warStar, battleId, isSuccess?1:0, false, stars);
|
||||
if (checkResult.status == -1) {
|
||||
return checkResult.resResult;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ export class NormalBattleHandler {
|
||||
pushTowerMsg(roleId, roleName, serverId, MSG_SOURCE.TOWER_SUC, towerEndResult.data.newRec.lv);
|
||||
}
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY || warInfo.warType == WAR_TYPE.MYSTERY_ELITE) {
|
||||
let checkResult = await checkDungeonAndIncrease(roleId, 1, false);
|
||||
let checkResult = await checkDungeonAndIncrease(roleId, isSuccess?1:0, false);
|
||||
let role = await RoleModel.saveDungeonHero(roleId, battleId, heroes, isSuccess);
|
||||
if (role) {
|
||||
await saveDungeonFirst(role, battleId, BattleRecord);
|
||||
|
||||
Reference in New Issue
Block a user