🐞 fix(正在战斗中的队伍不可移动):
This commit is contained in:
@@ -251,7 +251,7 @@ export default class GVGTeam extends BaseModel {
|
||||
|
||||
// 防守方锁定cd
|
||||
public static async battleStartLockDefense(teamCode: string, lockTeamCode: string) {
|
||||
const team: GVGTeamType = await GVGTeamModel.findOneAndUpdate({ teamCode }, { $set: { lockTime: nowSeconds() + GVG.GVG_DEFAULT_ATTACK_CD, lockTeamCode } }, { new: true }).lean();
|
||||
const team: GVGTeamType = await GVGTeamModel.findOneAndUpdate({ teamCode }, { $set: { lockTime: nowSeconds() + GVG.GVG_DEFAULT_BATTLE_CD, lockTeamCode } }, { new: true }).lean();
|
||||
return team;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user