瀏覽代碼

最大通关idbug修复,战力完成

cyzhao 1 年之前
父節點
當前提交
da031ce9f9
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 2
      Gameserver/App/model/User/Info_Gates.php
  2. 1 0
      Gameserver/App/process/FightProc.php

+ 2 - 2
Gameserver/App/model/User/Info_Gates.php

@@ -199,8 +199,8 @@ class Info_Gates extends Object_ext {
         $maxIndex = 0;
         $maxGateId = 0;
         foreach ($this->GateList as $gateId => $Ins_GateInfo) {
-            if ($Ins_GateInfo->pass > 0 && $Ins_GateInfo->GateMapTypeFromId($gateId) > $maxIndex) {
-                $maxIndex = $Ins_GateInfo->GateMapTypeFromId($gateId);
+            if ($Ins_GateInfo->pass > 0 && Ins_GateInfo::GateMapTypeFromId($gateId) > $maxIndex) {
+                $maxIndex = Ins_GateInfo::GateMapTypeFromId($gateId);
                 $maxGateId = $gateId;
             }
         }

+ 1 - 0
Gameserver/App/process/FightProc.php

@@ -547,6 +547,7 @@ class FightProc {
                 $maxGateId = ctx()->gates->maxPassGateId();
                 if ($maxGateId > 0) {
                     self::Ranking_MainGateIndex($maxGateId);
+                    self::IsAchievedMainGate_PassReward($maxGateId);
                 }
             }