名将擂台:修复多处bug

This commit is contained in:
luying
2022-07-19 09:58:31 +08:00
parent d72f6ef080
commit 05d8449ca3
10 changed files with 10325 additions and 6837 deletions

View File

@@ -234,6 +234,7 @@ export class LadderDataReturn {
defense: LadderDefenseReturn = null;
status: LADDER_STATUS = LADDER_STATUS.NO;
time: number = 0;
battleCode: string = '';
oppPlayers: LadderOppPlayerReturn[] = []
setLadderData(ladderData: LadderMatchType, ladderRec?: LadderMatchRecType) {
@@ -246,6 +247,7 @@ export class LadderDataReturn {
this.defense = new LadderDefenseReturn(ladderData.defense);
}
if(ladderRec) {
this.battleCode = ladderRec.battleCode;
this.status = ladderRec.status;
if(this.status == LADDER_STATUS.BATTLE) {
this.time = ladderRec.battleTime + LADDER.LADDER_BATTLE_COUNTDOWN;
@@ -336,7 +338,7 @@ export class LadderOppDetailHeroReturn {
spine: string = ''; // 动画
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) {
this.dataId = warJson.actorId;
this.dataId = warJson.dataId;
this.relation = warJson.relation;
this.dirction = warJson.dirction;
this.x = warJson.x;