🐞 fix(gvg): 投石车无法被攻击

This commit is contained in:
luying
2023-03-28 10:45:30 +08:00
parent f32a93b691
commit 6218378030

View File

@@ -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);
}