初始:修复初始pvp对手战力为0
This commit is contained in:
@@ -50,11 +50,13 @@ export async function initPvpInfo(role: RoleType) {
|
||||
}
|
||||
|
||||
export async function checkPvp(role: RoleType) {
|
||||
let result = await PvpDefenseModel.findByRoleId(role.roleId, true);
|
||||
if (!!result)
|
||||
if(role.hasInit) {
|
||||
let result = await PvpDefenseModel.findByRoleId(role.roleId, true);
|
||||
if (!!result)
|
||||
return result;
|
||||
result = await initPvpInfo(role);
|
||||
return result;
|
||||
result = await initPvpInfo(role);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user