🧪 test(gvg): 添加gvg激战期debug接口
This commit is contained in:
@@ -154,7 +154,11 @@ class GVGBattleData {
|
||||
|
||||
// 投石车
|
||||
public findCatapult() {
|
||||
let teamCodes = this.roleToTeam.get(GVG_CATAPULT)||[];
|
||||
return this.findTeamsByRole(GVG_CATAPULT);
|
||||
}
|
||||
|
||||
public findTeamsByRole(roleId: string) {
|
||||
let teamCodes = this.roleToTeam.get(roleId)||[];
|
||||
return teamCodes.map(teamCode => this.teams.get(teamCode));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user