diff --git a/game-server/app/servers/guild/handler/gvgBattleHandler.ts b/game-server/app/servers/guild/handler/gvgBattleHandler.ts index fd24a12d8..73f17c76b 100644 --- a/game-server/app/servers/guild/handler/gvgBattleHandler.ts +++ b/game-server/app/servers/guild/handler/gvgBattleHandler.ts @@ -319,8 +319,9 @@ export class GVGBattleHandler { 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); + if(!team && dicPoint.type != GVG_POINT_TYPE.ROBOT) continue; + let obj = new GVGTeamInListOnPoint(pointId, !!team, team); points.push(obj); }