From 2bca56e5df150d46e0f218a4e1af5e3dd81a0bcb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 16 五月 2024 16:40:44 +0800
Subject: [PATCH] 10159 [新增]异兽入侵

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 05fe156..ba0508d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -77,6 +77,8 @@
 import GameObj
 import ChNPC
 import PassiveBuffEffMng
+import CalcNoLineEffect
+import CalcLineEffect
 
 import random
 import math
@@ -4157,6 +4159,19 @@
         else:
             DoNPCAttrStrengthen(curNPC, isReborn)
             
+        #其他功能属性
+        otherAttrList = [{} for _ in range(4)]
+        #副本增加属性
+        plusAttrDict = FBLogic.CalcFBNPCPlusAttr(curNPC)
+        for attrID, attrValue in plusAttrDict.items():
+            if not attrValue or not attrID:
+                continue
+            PlayerControl.CalcAttrDict_Type(attrID, attrValue, otherAttrList)
+        #GameWorld.DebugLog("NPC plusAttrDict=%s" % plusAttrDict)
+        #GameWorld.DebugLog("NPC otherAttrList=%s" % otherAttrList)
+        CalcNoLineEffect.ChangeNPCAttrInNoLineEffectList(curNPC, otherAttrList[ChConfig.CalcAttr_BattleNoline])
+        CalcLineEffect.ChangeNPCAttrInLineEffectList(curNPC, otherAttrList[ChConfig.CalcAttr_Battle])
+        
         #计算buf对战斗属性的改变
         allAttrList = SkillShell.CalcBuffer_NPCBattleEffect(curNPC)
         

--
Gitblit v1.8.0