名将擂台:修复多处bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user