From 27c4fd0e86e3baf5070b422c87baa7e1b7c8a0df Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 24 八月 2018 15:40:48 +0800
Subject: [PATCH] fix:召唤兽继承NPC主人的境界

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py                   |    1 +
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py |    2 +-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py |    4 +++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
index 92de7e1..4e8bfc8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -1593,7 +1593,7 @@
         if curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_RealmSuppress:
             # 境界压制技能不对高等级境界玩家产生攻击
             aRealmLV, dRealmLV = GetPVERealmLVs(atkObj, defObj, atkObjType, defObjType) 
-            if aRealmLV >= dRealmLV:
+            if aRealmLV <= dRealmLV:
                 return 0, ChConfig.Def_HurtType_Immune   # 免疫
         
         atkIsBoss = 1 if ChConfig.IsGameBoss(atkObj) else 0
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 1a98920..91ab5a4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -104,6 +104,7 @@
     return curNPC.GetLV()
 
 def GetRealmLV(curNPC): return curNPC.GetMAtkMin()      # NPC表中此字段含义改成境界等级
+def SetRealmLV(curNPC, realmLV): return curNPC.SetMAtkMin(realmLV)      # NPC表中此字段含义改成境界等级
 def GetIsLVSuppress(curNPC): return curNPC.GetWindDef() # 风防代表是否等级压制
 def GetSuppressFightPower(curNPC): return curNPC.GetThunderDef() # 雷防代表压制战力
 def SetSuppressFightPower(curNPC, value): return curNPC.SetThunderDef(value)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py
index 4121653..72df93c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py
@@ -180,7 +180,9 @@
     summonNPC.SetBaseMinAtk(int(curNPC.GetMinAtk()*atkper))
     summonNPC.SetBaseMaxAtk(int(curNPC.GetMaxAtk()*atkper))
     summonNPC.SetBaseHit(curNPC.GetHit())
-    
+
+    NPCCommon.SetRealmLV(summonNPC, NPCCommon.GetRealmLV(curNPC))   # 继承境界
+
     #summonNPC.SetBaseAtkInterval(500)
     summonNPC.SetBaseMissRate(curNPC.GetMiss())
     

--
Gitblit v1.8.0