🐞 fix(gvg): 修复离开战场逻辑
This commit is contained in:
@@ -10,6 +10,7 @@ import { getGVGConfig, setGVGConfig, setGVGServerGroup } from '../../../services
|
||||
import { GVGConfigType } from '../../../db/GVGConfig';
|
||||
import { catapultHurt, gvgBattleEnd, gvgBattleSeconds, gvgBattleStart, initCatapult, leaveCity } from '../../../services/gvg/gvgBattleService';
|
||||
import { clearBattleMemory } from '../../../services/gvg/gvgBattleMemory';
|
||||
import { GVGLeagueType } from '../../../db/GVGLeague';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -169,9 +170,9 @@ export class GuildRemote {
|
||||
}
|
||||
}
|
||||
|
||||
public async leaveCity(roleId: string, isForce: boolean) {
|
||||
public async leaveCity(isForce: boolean, roleId: string, serverId: number, guildCode: string, myLeague?: GVGLeagueType) {
|
||||
try {
|
||||
return leaveCity(roleId, isForce);
|
||||
return leaveCity(isForce, roleId, serverId, guildCode, myLeague);
|
||||
} catch(e) {
|
||||
errlogger.error(`remote ${__filename} \n ${e.stack}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user