浏览代码

购买资源月卡后扫荡次数可以无限

cyzhao 11 月之前
父节点
当前提交
835f639f47
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Gameserver/App/process/FightProc.php

+ 6 - 2
Gameserver/App/process/FightProc.php

@@ -70,8 +70,12 @@ class FightProc {
         $costTili = glc()->sweep_cost_tili;
         $curTili = ctx()->baseInfo->CurTili();
         my_Assert($curTili >= $costTili, ErrCode::notenough_tili);
-        $max = glc()->sweepMaxNum;
-        my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
+               
+        if(ctx()->privateState->honourCardShop_ts == 0){
+            $max = glc()->sweepMaxNum;
+            my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
+        }
+        
         ctx()->gates->fightSweepNum += 1;
         ctx()->baseInfo->Consume_tili($costTili);
         $prizeArr = array();