From a9f55b1be431e71c9be021f7484c2e45e34b9586 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 22 十二月 2023 18:12:19 +0800
Subject: [PATCH] 10019 【砍树】回合战斗(NPC战斗属性统一放到NPC扩展表;每回合开始处理减技能CD、buff持续时间、刷新buff,每回合等同于常规时间1秒;NPC支持击晕;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 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 2f74743..8105c44 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -4094,6 +4094,9 @@
         npcDataEx = GetNPCDataEx(curNPC.GetNPCID())
         if npcDataEx:
             GameObj.SetAtkSpeed(curNPC, npcDataEx.GetAtkSpeed())
+            GameObj.SetMissRate(curNPC, npcDataEx.GetMissRate())
+            GameObj.SetMissDefRate(curNPC, npcDataEx.GetMissDefRate())
+            GameObj.SetSuperHitRate(curNPC, npcDataEx.GetSuperHitRate())
             GameObj.SetSuperHitRateReduce(curNPC, npcDataEx.GetSuperHitRateReduce())
             GameObj.SetFaintRate(curNPC, npcDataEx.GetFaintRate())
             GameObj.SetFaintDefRate(curNPC, npcDataEx.GetFaintDefRate())
@@ -4143,11 +4146,11 @@
         curNPC.SetMaxAtk(PropDict["MaxAtk"])
         curNPC.SetDef(PropDict["Def"])
         GameObj.SetMaxHP(curNPC, PropDict["MaxHP"])
-        curNPC.SetHit(PropDict["Hit"])
-        curNPC.SetMiss(PropDict["Miss"])
         GameObj.SetAtkSpeed(curNPC, PropDict.get("AtkSpeed", 0))
         
-        curNPC.SetSuperHitRate(PropDict["SuperHitRate"])
+        GameObj.SetMissRate(curNPC, PropDict["Miss"])
+        GameObj.SetMissDefRate(curNPC, PropDict["Hit"])
+        GameObj.SetSuperHitRate(curNPC, PropDict["SuperHitRate"])
         GameObj.SetSuperHitRateReduce(curNPC, PropDict["SuperHitRateReduce"])
         GameObj.SetFaintRate(curNPC, PropDict["FaintRate"])
         GameObj.SetFaintDefRate(curNPC, PropDict["FaintDefRate"])

--
Gitblit v1.8.0