浏览代码

任务bugxiufu

cyzhao 10 月之前
父节点
当前提交
028c076051
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Gameserver/App/model/User/Ins_TaskStep_Active.php

+ 1 - 1
Gameserver/App/model/User/Ins_TaskStep_Active.php

@@ -120,7 +120,7 @@ class Ins_TaskStep_Active extends Object_ext {
         switch ($mo->cmd) {
         switch ($mo->cmd) {
             case Enum_ActiveTaskCmdType::FightGate_X:
             case Enum_ActiveTaskCmdType::FightGate_X:
                 $gateId = $para0;
                 $gateId = $para0;
-                if(StlUtil::dictHasProperty(ctx()->gates->GateList, $gateId)){
+                if(StlUtil::dictHasProperty(ctx()->gates->GateList, $gateId) && ctx()->gates->GateList->$gateId->fightNum > 0){                   
                     return 1;
                     return 1;
                 }
                 }