远征:修改碾压判断条件
This commit is contained in:
@@ -136,7 +136,7 @@ export function calculateWarStar(warStar: WarStar[] = [], battleId: number, star
|
||||
newStar = stars.filter(cur => cur > 0).length;
|
||||
newStars = stars;
|
||||
let dicWar = gameData.war.get(battleId);
|
||||
newWarStars.push({ id: battleId, warType: dicWar.warType, star: newStar, stars: newStars});
|
||||
if(dicWar) newWarStars.push({ id: battleId, warType: dicWar.warType, star: newStar, stars: newStars});
|
||||
}
|
||||
return { newWarStars, newStars, newStar };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user