🐞 fix(名将擂台): 守方宝物字段修改

This commit is contained in:
luying
2023-04-01 15:54:32 +08:00
parent b8790ba27c
commit 7c6dc3de94

View File

@@ -360,7 +360,7 @@ export class LadderOppDetailHeroReturn {
talent: Talent[] = [];
subHid: number = 0; // 副将
subActorId: number = 0;
artifact: HeroArtifact[] = [];
artifacts: HeroArtifact[] = [];
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero, artifacts: ArtifactModelType[]) {
this.dataId = warJson.dataId;
@@ -393,7 +393,7 @@ export class LadderOppDetailHeroReturn {
this.subHid = hero.subHid;
this.subActorId = hero.subActorId;
let artifact = artifacts.find(cur => cur.seqId == hero.artifact);
if(artifact) this.artifact.push({ artifactId: artifact.artifactId, lv: artifact.lv });
if(artifact) this.artifacts.push({ artifactId: artifact.artifactId, lv: artifact.lv });
}
}
}