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; } } }