粮草先行:木牛流马被击毁时依然下发单woodenHorseList为空
This commit is contained in:
@@ -308,18 +308,20 @@ export class RaceActivityObject {
|
|||||||
|
|
||||||
private async getScreenHorses(serverId: number, ranks: RaceActivityRankParam[], i: number, needSend: boolean) {
|
private async getScreenHorses(serverId: number, ranks: RaceActivityRankParam[], i: number, needSend: boolean) {
|
||||||
let curRank = ranks[i];
|
let curRank = ranks[i];
|
||||||
if(curRank.durability == 0) return;
|
if(!curRank) return;
|
||||||
// 发送
|
// 发送
|
||||||
// console.log('send', woodenHorseList.length);
|
// console.log('send', woodenHorseList.length);
|
||||||
let wh = await this.getWoodenHorse(curRank.code, serverId);
|
let wh = await this.getWoodenHorse(curRank.code, serverId);
|
||||||
let screenRank = this.getScreenHorseRanks(ranks, i);
|
let screenRank = this.getScreenHorseRanks(ranks, i);
|
||||||
let woodenHorseList: WoodenHorse[] = [];
|
let woodenHorseList: WoodenHorse[] = [];
|
||||||
for(let rank of screenRank) {
|
if(curRank.durability != 0) {
|
||||||
if(rank.code == curRank.code) {
|
for(let rank of screenRank) {
|
||||||
woodenHorseList.push(wh);
|
if(rank.code == curRank.code) {
|
||||||
} else {
|
woodenHorseList.push(wh);
|
||||||
let wh = await this.getWoodenHorse(rank.code, serverId);
|
} else {
|
||||||
woodenHorseList.push(wh);
|
let wh = await this.getWoodenHorse(rank.code, serverId);
|
||||||
|
woodenHorseList.push(wh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user