✨ feat(gvg): 投石车攻击对手范围调整
This commit is contained in:
@@ -33,18 +33,14 @@ class GVGBattleData {
|
||||
return teams.slice(0, 20);
|
||||
}
|
||||
|
||||
public findCatapultAttackTeam(areaIds: number[], leagueCode: string) {
|
||||
let teamsByArea = new Map<number, string[]>();
|
||||
for(let areaId of areaIds) {
|
||||
let teams: string[] = [];
|
||||
let teamCodes = this.areaToTeams.get(areaId)||new Set();
|
||||
for(let teamCode of teamCodes) {
|
||||
let team = this.teams.get(teamCode);
|
||||
if(team && team.leagueCode != leagueCode && !team.isRobot) teams.push(teamCode);
|
||||
}
|
||||
teamsByArea.set(areaId, teams);
|
||||
public findCatapultAttackTeam(areaId: number, leagueCode: string) {
|
||||
let teams: string[] = [];
|
||||
let teamCodes = this.areaToTeams.get(areaId)||new Set();
|
||||
for(let teamCode of teamCodes) {
|
||||
let team = this.teams.get(teamCode);
|
||||
if(team && team.leagueCode != leagueCode && !team.isRobot) teams.push(teamCode);
|
||||
}
|
||||
return teamsByArea;
|
||||
return teams;
|
||||
}
|
||||
|
||||
public leaveCity(roleId: string) {
|
||||
|
||||
Reference in New Issue
Block a user