🐞 fix(gvg): 投石车无法被攻击
This commit is contained in:
@@ -319,8 +319,9 @@ export class GVGBattleHandler {
|
|||||||
let pointIds = gameData.gvgPointByAreaId.get(myTeam.areaId)||[];
|
let pointIds = gameData.gvgPointByAreaId.get(myTeam.areaId)||[];
|
||||||
for(let pointId of pointIds) {
|
for(let pointId of pointIds) {
|
||||||
let dicPoint = gameData.gvgAreaPoint.get(pointId);
|
let dicPoint = gameData.gvgAreaPoint.get(pointId);
|
||||||
if(dicPoint.type != GVG_POINT_TYPE.ROBOT) continue;
|
|
||||||
let team = teams.find(cur => cur.pointId == pointId);
|
let team = teams.find(cur => cur.pointId == pointId);
|
||||||
|
if(!team && dicPoint.type != GVG_POINT_TYPE.ROBOT) continue;
|
||||||
|
|
||||||
let obj = new GVGTeamInListOnPoint(pointId, !!team, team);
|
let obj = new GVGTeamInListOnPoint(pointId, !!team, team);
|
||||||
points.push(obj);
|
points.push(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user