pvp设置防守阵容
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user