pvp设置防守阵容

This commit is contained in:
mamengke01
2021-01-11 16:31:34 +08:00
parent 17a6ddb04b
commit 5ca63c00ae
2 changed files with 17 additions and 0 deletions

View File

@@ -256,6 +256,9 @@ export class PvpHandler {
defHeros[defIndex].dataId = dataId;
continue;
}
if (heroes[index].order < 1 || heroes[index].order > 5) {
return resResult(STATUS.WRONG_PARMS);
}
let hero = await HeroModel.findByHidAndRole(heroes[index].actorId, roleId);
if (!hero) {
continue;