Revert " feat(gvg): 遗迹驻扎阵容优化"

This reverts commit 37a0aba5ea.
This commit is contained in:
luying
2023-06-27 15:40:29 +08:00
parent 46e5d1e648
commit d10eacde86
4 changed files with 3 additions and 22 deletions

View File

@@ -31,7 +31,6 @@ import { PvpSaveDataModel } from '../../../db/PvpSaveData';
import { ArtifactModel } from '../../../db/Artifact';
import { GVGVestigeRankModel } from '../../../db/GVGVestigeRank';
import { GVGTeamModel } from '../../../db/GVGTeam';
import { checkHeroIsUsedInOtherVestige } from '../../../services/gvg/gvgFightService';
export default function (app: Application) {
new HandlerService(app, {});
@@ -775,7 +774,6 @@ export class HeroHandler {
let dicHero = gameData.hero.get(subSkinId);
if(!dicHero || dicHero.urType == 1) return resResult(STATUS.HERO_CAN_NOT_BE_SET_SUB);
subHid = dicHero.actorId;
if(await checkHeroIsUsedInOtherVestige(roleId, 0, [{ actorId: subHid }])) return resResult(STATUS.GVG_SUBHERO_USED_IN_VESTIGE);
let subHero = await HeroModel.findByHidAndRole(subHid, roleId);
if(!subHero) return resResult(STATUS.HERO_NOT_FIND);