Prechádzať zdrojové kódy

提交对应的商业活动bug修改

SCFC 9 mesiacov pred
rodič
commit
56c8e2af31

+ 8 - 1
script/module/absAct/BusOneActivityHeroYuanZheng.lua

@@ -305,7 +305,11 @@ function BusOneHeroYuanZheng_Do(human, nOperate)
         nAddFenShu = nOperate == BUSONEHEROYUANZHENGBAOHU and 0 or nFenShu
     end
 
-    local bCanNext = nAddFenShu < 0 and false or true
+    local bCanNext = true
+    if nAddFenShu < 0 then
+        bCanNext = false
+    end
+
     BusOneHeroYuanZheng_SetCanDo(human, bCanNext)
 
     local nNowLayers = BusOneHeroYuanZheng_GetLayers(human)
@@ -317,6 +321,9 @@ function BusOneHeroYuanZheng_Do(human, nOperate)
         BusOneHeroYuanZheng_SetStatus(human, nNowLayers, CommonDefine.COMMON_PRIZE_STATE_NOGET)
         BusOneHeroYuanZheng_SetLayers(human, nNextLayer)
         BusOneHeroYuanZheng_SetStatus(human, nNextLayer, CommonDefine.COMMON_PRIZE_STATE_CANGET)
+        if nNextLayer == nMaxLayers  then
+            BusOneHeroYuanZheng_SetCanDo(human, false)
+        end
     else
         nNextLayer = nNextLayer < 0 and 0 or nNextLayer
         BusOneHeroYuanZheng_SetStatus(human, nNowLayers, CommonDefine.COMMON_PRIZE_STATE_NOGET)

+ 1 - 2
script/module/absAct/BusOneActivityTask.lua

@@ -175,7 +175,6 @@ local function BusOneTask_GetHero(nEventType, uuid, nValue1, nValue2)
         return
     end
 
-    
     local nNum = nValue1
     local nStar = nValue2
     print("[BusOneTask_GetHero] 获取了英雄 nEventType = "..nEventType.." uuid = "..uuid.." nNum = "..nNum.." nStar = "..nStar)
@@ -186,7 +185,7 @@ local function BusOneTask_GetHero(nEventType, uuid, nValue1, nValue2)
         local tConfig = tTaskConf[nID]
         if tConfig and tConfig.nType == nEventType and tConfig.ExtraParameter then
             if v.nStatus == CommonDefine.COMMON_PRIZE_STATE_NOGET then
-                local tTaskArgument = Util.split(v.ExtraParameter , "|")
+                local tTaskArgument = Util.split(tConfig.ExtraParameter , "|")
                 if nNum >= tonumber(tTaskArgument[1]) and nStar == tonumber(tTaskArgument[2]) then
                     v.nFinish = v.nFinish + 1
                     if v.nFinish >= tConfig.nNeedFinish then