From bc25d4e060efb6ed7b946fbfb1333a52aa73caef Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 22 十二月 2018 16:17:18 +0800
Subject: [PATCH] 5372 【后端】【1.4】聚魂副本开发(新增守卫AI66, 玩家不能对怪物加buff)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 5 +++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_66.py | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_66.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_66.py
new file mode 100644
index 0000000..17cfdf2
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_66.py
@@ -0,0 +1,41 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#---------------------------------------------------------------------
+#
+#---------------------------------------------------------------------
+##@package AIType_66
+# @todo: 聚魂副本 正义守卫AI(会刷新仇恨的)
+#
+# @author xdh
+# @date 2018-12-22 16:10
+# @version 1.0
+#
+# @note:
+#---------------------------------------------------------------------
+"""Version = 2018-12-22 16:10"""
+#---------------------------------------------------------------------
+import ChConfig
+import FBDefenseCommon
+#---------------------------------------------------------------------
+
+## 初始化
+# @param curNPC 当前npc
+# @return None
+# @remarks 函数详细说明.
+def DoInit(curNPC):
+ curNPC.GetNPCAngry().Init(ChConfig.Def_NormalNPCAngryCount)
+ return
+
+
+## 执行AI
+# @param curNPC 当前npc
+# @param tick 当前时间
+# @return None
+# @remarks 函数详细说明.
+def ProcessAI(curNPC, tick):
+ if not FBDefenseCommon.NormalCheck(curNPC, tick):
+ return
+
+ FBDefenseCommon.NormalFight(curNPC, tick, False, 4000, True)
+ return
+
\ No newline at end of file
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
index 4a90148..8eef816 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -40,6 +40,11 @@
if curObj == None:
# 避免配表错误导致报错
return False
+ if GameWorld.GetMap().GetMapID() == ChConfig.Def_FBMapID_GatherSoul and buffOwner \
+ and buffOwner.GetGameObjType() == IPY_GameWorld.gotPlayer and curObj.GetGameObjType() == IPY_GameWorld.gotNPC:
+ #GameWorld.DebugLog('聚魂副本玩家不能对怪物上buff')
+ return True
+
if curObj.GetGameObjType() == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \
and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss:
# 释放后 对指定BOSS无效的技能
--
Gitblit v1.8.0