🐞 fix(gvg): 修复攻打掉占领据点的队伍时的数据错误
This commit is contained in:
@@ -104,11 +104,12 @@ class GVGBattleData {
|
||||
}
|
||||
|
||||
private setRolePoints(roleId: string, fromPointId: number, pointId: number, teamCode: string) {
|
||||
if(fromPointId > 0 && pointId == 0) { // 被打得撤离积分点
|
||||
if(fromPointId > 0) { // 被打得撤离积分点
|
||||
if(this.rolePoints.has(roleId) && this.rolePoints.get(roleId).has(fromPointId)) {
|
||||
this.rolePoints.get(roleId).delete(fromPointId);
|
||||
}
|
||||
} else if (fromPointId == 0 && pointId > 0) {
|
||||
}
|
||||
if (pointId > 0) {
|
||||
if(!this.rolePoints.has(roleId)) this.rolePoints.set(roleId, new Map());
|
||||
this.rolePoints.get(roleId).set(pointId, teamCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user