fix: 寻宝好友加成改为在开始战斗时加成
This commit is contained in:
@@ -142,7 +142,6 @@ export class ComBattleHandler {
|
||||
|
||||
let isFrd = await getFrd(roleId, goodData.quality);
|
||||
const st = new RoleStatus(roleId, roleName, false, isFrd, headHid, sHid, topFiveCe, lv);
|
||||
await getComBattleFriendAdd(st, roleStatus);
|
||||
|
||||
roleStatus.push(st);
|
||||
roleIds.push(roleInfo.roleId);
|
||||
@@ -359,9 +358,6 @@ export class ComBattleHandler {
|
||||
teamStatus.roleIds.push(roleId);
|
||||
teamStatus.roleStatus.push(roleStatus);
|
||||
|
||||
// 好友加成
|
||||
await getComBattleFriendAdd(roleStatus, teamStatus.roleStatus);
|
||||
|
||||
let users = channel.getMembers();
|
||||
if (users.indexOf(roleId) === -1) {
|
||||
channel.add(roleId, sid);
|
||||
@@ -574,6 +570,8 @@ export class ComBattleHandler {
|
||||
clearComBtlTimer(teamCode, this.teamDisTimer); // 战斗开始停止解散计时
|
||||
let channelService = this.app.get('channelService');
|
||||
let channel = channelService.getChannel(teamCode, false);
|
||||
|
||||
await getComBattleFriendAdd(teamStatus.roleStatus);
|
||||
channel.pushMessage('onComBtlStart', resResult(STATUS.SUCCESS, {teamCode, roleStatus: teamStatus.roleStatus}));
|
||||
// 每场倒计时结算
|
||||
let thiz = this;
|
||||
|
||||
Reference in New Issue
Block a user