From 038d417a1d3379647b3f2262b1bc7639e21d1c82 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 15 Sep 2023 21:36:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=88=98=E6=8A=A5=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/mainline/api_challengeover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mainline/api_challengeover.go b/modules/mainline/api_challengeover.go index 8e1f7622f..f5c960032 100644 --- a/modules/mainline/api_challengeover.go +++ b/modules/mainline/api_challengeover.go @@ -70,7 +70,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh return } - if !isWin && conf.BattleFail == 1 { //战斗失败特殊处理 + if req.Report != nil && !isWin && conf.BattleFail == 1 { //战斗失败特殊处理 isWin = true }