From 43415c0b60c20de98caa35768f01dddd8fea38eb Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 15 十月 2018 21:02:17 +0800
Subject: [PATCH] 2145 bug:法师噬天斧技能学习3个潜力在和平状态下释放技能会提示当前模式不可PK

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
index 730bdcd..d1bdcc9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
@@ -1501,7 +1501,8 @@
     if relation[0] == ChConfig.Type_Relation_Enemy :
         return True
     
-    AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
+    if curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_FbSkill:
+        AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
     return False
 
 ##玩家释放有目标技能, 检查目标对象是否符合要求, 可攻击怪物
@@ -1534,7 +1535,8 @@
     if relation[0] == ChConfig.Type_Relation_Friend :
         return True
     
-    AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
+    if curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_FbSkill:
+        AttackCommon.PlayerAttackFailSysMessanage(curPlayer, relation[1])
     return False
 
 #---------------------------------------------------------------------

--
Gitblit v1.8.0