🐞 fix(gvg): 投石车积分点不显示

This commit is contained in:
luying
2023-03-09 16:42:02 +08:00
parent 926572604e
commit 93e7711577

View File

@@ -300,6 +300,8 @@ export class GVGBattleHandler {
let points: GVGTeamInListOnPoint[] = [], players: GVGTeamInList[] = [];
let pointIds = gameData.gvgPointByAreaId.get(myTeam.areaId)||[];
for(let pointId of pointIds) {
let dicPoint = gameData.gvgAreaPoint.get(pointId);
if(dicPoint.type != GVG_POINT_TYPE.ROBOT) continue;
let team = teams.find(cur => cur.pointId == pointId);
let obj = new GVGTeamInListOnPoint(pointId, !!team, team);
points.push(obj);