فهرست منبع

处理异界布阵界面没有显示凤凰技能问题

gitxsm 5 ماه پیش
والد
کامیت
97ec67de92
2فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 1 1
      script/module/combat/CombatPosLogic.lua
  2. 7 2
      script/module/moshou/MoshouLogic.lua

+ 1 - 1
script/module/combat/CombatPosLogic.lua

@@ -733,7 +733,7 @@ function posQuery(human, combatType, group, param, flag, extraArgs)
     msgRet.flag = flag or 0
     local cjPrivilege = ChengjiuLogic.checkPrivilege(human, ChengjiuDefine.PRIVILEGE_TYPE_8)
     msgRet.moshouLock = cjPrivilege and 1 or 0
-    local skillID = MoshouLogic.getPutMoshouSkillID(human, combatType) or 0
+    local skillID = MoshouLogic.getPutMoshouSkillID(human, combatType, helpList) or 0
     local skillConfig = SkillExcel.skill[skillID]
     msgRet.moshouSkill = skillConfig and skillConfig.icon or ""
 

+ 7 - 2
script/module/moshou/MoshouLogic.lua

@@ -1377,8 +1377,13 @@ function createCombatMoshow(human, combatType, moshowIdArr)
 end
 
 -- 获取出战魔兽的skillID
-function getPutMoshouSkillID(human, combatType)
-    local putOnMoshou = CombatPosLogic.getCombatMoshou(human, combatType)
+function getPutMoshouSkillID(human, combatType, helpList)
+    local putOnMoshou
+    if combatType == CombatDefine.COMBAT_TYPE36 and helpList then
+        putOnMoshou = helpList[1]
+    else
+        putOnMoshou = CombatPosLogic.getCombatMoshou(human, combatType)
+    end
     if not putOnMoshou or putOnMoshou < 1 then return end
     if not MOSHOU_SKILL[MOSHOU_ID1][putOnMoshou] then return end