From e19d87e78816d18ed7f1ac66328fe82132033b7e Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 19 Aug 2022 11:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E5=B0=86=E6=93=82=E5=8F=B0=EF=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/battleField/ladder.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/domain/battleField/ladder.ts b/shared/domain/battleField/ladder.ts index f670694b2..74e18aeaf 100644 --- a/shared/domain/battleField/ladder.ts +++ b/shared/domain/battleField/ladder.ts @@ -1,6 +1,6 @@ import { mongoose, prop, Ref } from "@typegoose/typegoose"; import { LADDER_STATUS } from "../../consts"; -import Hero, { HeroType } from '../../db/Hero'; +import Hero, { HeroType, Talent } from '../../db/Hero'; import { LadderMatchType } from "../../db/LadderMatch"; import { LadderMatchRecType } from "../../db/LadderMatchRec"; import { RoleType } from "../../db/Role"; @@ -340,6 +340,7 @@ export class LadderOppDetailHeroReturn { skill: string = ''; // 技能 seid: string = ''; // 技能 spine: string = ''; // 动画 + talent: Talent[] = []; constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) { this.dataId = warJson.dataId; @@ -364,6 +365,8 @@ export class LadderOppDetailHeroReturn { this.lv = hero.lv; this.star = hero.star; this.colorStar = hero.colorStar; + let skin = hero.skins.find(cur => cur.enable); + if(skin) this.talent = skin.talent; } } }