diff --git a/shared/domain/battleField/ladder.ts b/shared/domain/battleField/ladder.ts index b9471ab8c..c16d78cce 100644 --- a/shared/domain/battleField/ladder.ts +++ b/shared/domain/battleField/ladder.ts @@ -374,6 +374,7 @@ export class LadderOppDetailReturn { title: number = 1; warId: number = 0; heroes: LadderOppDetailHeroReturn[] = []; + defCe: number = 0; constructor(ladderRec: LadderMatchRecType) { this.battleCode = ladderRec.battleCode; @@ -398,6 +399,7 @@ export class LadderOppDetailReturn { if(warJson) { let obj = new LadderOppDetailHeroReturn(warJson, hero); this.heroes.push(obj); + this.defCe += hero.ce; } } } @@ -407,6 +409,7 @@ export class LadderOppDetailReturn { this.isRobot = true; this.roleId = `robot${dicLadderDifficultRatio.rank}`; this.warId = dicLadderDifficultRatio.gkId; + this.defCe = dicLadderDifficultRatio.ce; } setAttribute(hid: number, attribute: string) {