From 367fd9c77f82b2c7960dc9281c270e550d3ecbb0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 30 一月 2026 15:23:37 +0800
Subject: [PATCH] 438 【方案】方案预设-服务端(修复当前流派子方案切换时如切武将方案,定军阁进攻武将不会刷新的bug;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
index 42e97cc..5a9df8e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
@@ -37,6 +37,7 @@
 # 特权效果类型
 GubaoPowerType_TravelMultiRate = 1 # 游历双倍奖励概率
 GubaoPowerType_InvestMonthAwardPer = 2 # 月卡领取额外奖励
+GubaoPowerType_InvestLifeAwardPer = 3 # 永久卡领取额外奖励
 
 def GetGubaoInfo(curPlayer, gubaoID):
     info = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GubaoInfo % gubaoID)
@@ -302,7 +303,7 @@
         # 特殊属性
         attrID = ipyData.GetSpecAttrID()
         if attrID:
-            #effType = ipyData.GetSpecEffType()
+            effType = ipyData.GetSpecEffType()
             layerMax = ipyData.GetSpecEffLayerMax()
             SpecAttrValue = ipyData.GetSpecAttrValue()
             SpecAttrPerStarAdd = ipyData.GetSpecAttrPerStarAdd()
@@ -314,7 +315,7 @@
                 for sIndex in range(min(len(specAttrIDList), len(specAttrValueList))):
                     if specAttrIDList[sIndex] == attrID:
                         specLVAttr = specAttrValueList[sIndex]
-            if not layerMax:
+            if not layerMax or not effType:
                 layer, layerMax = 1, 1 # 无层级限制的默认1层
             attrValue = int((SpecAttrValue + SpecAttrPerStarAdd * star + specLVAttr / float(layerMax)) * layer)
             attrDict[attrID] = attrDict.get(attrID, 0) + attrValue

--
Gitblit v1.8.0