From 6205cad85e6557c3c5afe93504e97aeb1ff96042 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 18 九月 2025 18:09:28 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(NPC表额外附加属性支持;成长怪非成长怪通用;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
index 2c03cc5..0f0b02b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -652,7 +652,10 @@
                        ChConfig.AttrID_ParryRate:npcData.GetParryRate(), ChConfig.AttrID_ParryRateDef:npcData.GetParryRateDef(), 
                        ChConfig.AttrID_SuckHPPer:npcData.GetSuckHPPer(), ChConfig.AttrID_SuckHPPerDef:npcData.GetSuckHPPerDef(), 
                        }
-        batAttrDict.update(npcData.GetSpecAttrInfo())
+    exAttrDict = npcData.GetSpecAttrInfo()
+    for attrIDStr, attrValue in exAttrDict.items():
+        attrID = int(attrIDStr)
+        batAttrDict[attrID] = batAttrDict.get(attrID, 0) + attrValue
         
     battleDict = {"NPCID":npcID,
                   "HeroID":heroID,

--
Gitblit v1.8.0