Commit 74bb1229899625638a66f29eb32a7af64cf2d614

Authored by liuzujun
1 parent d85ecb3f

神稀扣门票逻辑修改

Showing 2 changed files with 9 additions and 11 deletions   Show diff stats
src/actions/ActivityAction.lua
... ... @@ -605,6 +605,8 @@ function _M.startBattleRpc(agent, data)
605 605 end
606 606 end
607 607 num = num * count
  608 + else
  609 + num = 0
608 610 end
609 611 if ticket < num then
610 612 return 6
... ... @@ -799,18 +801,14 @@ function _M.endBattleRpc(agent, data)
799 801 if newStarNum > oldStarNum then
800 802 battleInfo["star"] = curStar
801 803 end
802   - if battleCfg.type ~= "" then
803   - -- 消耗门票
804   - role.activity:getBattleTicket(actid)
805   - local num = battleCfg.type:toArray(true, "=")[3]
806   - actData["ticket"] = math.max(actData["ticket"] - num, 0)
807   - end
808 804  
809 805 if battleCfg.rank ~= 0 and isWin then
810   - -- 消耗门票
811   - --role.activity:getBattleTicket(actid)
812   - --local num = battleCfg.type:toArray(true, "=")[3]
813   - --actData["ticket"] = math.max(actData["ticket"] - num, 0)
  806 + if battleCfg.type ~= "" then
  807 + -- 消耗门票
  808 + role.activity:getBattleTicket(actid)
  809 + local num = battleCfg.type:toArray(true, "=")[3]
  810 + actData["ticket"] = math.max(actData["ticket"] - num, 0)
  811 + end
814 812  
815 813 -- 更新排行榜 最高伤害
816 814 battleInfo["top"] = math.max(battleInfo["top"] or 0, dmg)
... ...
1   -Subproject commit 4d894270d4aeb6352a29dfd3a8686cbaea5b427c
  1 +Subproject commit 55a28d125f25a0d0b60e5a8cc74b40664aa98f8f
... ...