Commit 1c1ea69127b8204d7dff72d8a1dfdab367be1de9
1 parent
d19b2af3
活动战斗结束不发送战斗奖励
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/actions/ActivityAction.lua
... | ... | @@ -568,7 +568,10 @@ function _M.endBattleRpc(agent, data) |
568 | 568 | local isWin = msg.isWin |
569 | 569 | local heros = msg.heros |
570 | 570 | local support = msg.support |
571 | - if not role.activity:isOpenById(actid, "ChallengeLevel") then return 1 end | |
571 | + if not role.activity:isOpenById(actid, "ChallengeLevel") then | |
572 | + SendPacket(actionCodes.Activity_endBattleRpc, MsgPack.pack({})) | |
573 | + return true | |
574 | + end | |
572 | 575 | |
573 | 576 | if not role.__actBattleCache then return 2 end |
574 | 577 | ... | ... |