From fa8b51f4e42ccca5e8bdfec2fc07feaa8d45572e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 17 十二月 2025 14:51:14 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(孟获全部技能;增加触发方式47-受控后)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py | 13 +++++++++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 3 ++-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 8b833f3..042b9e5 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -4009,7 +4009,8 @@
TriggerWay_EnemyAction, # 敌方行动后 44
TriggerWay_FriendAction, # 友方行动后(包含自己) 45
TriggerWay_HurtTag, # 对目标造成伤害时 46
-) = range(1, 1 + 46)
+TriggerWay_BeControlledHard, # 受控时(硬控) 47
+) = range(1, 1 + 47)
# 不加载的被动触发方式,一般用于本技能固定触发逻辑用的
TriggerWayNoLoadList = [TriggerWay_CurSkillEff, TriggerWay_CurSkillEffLst]
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py
index 9960ce5..6845f8b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py
@@ -242,8 +242,21 @@
SyncBuffRefresh(turnFight, batObj, buff, relatedSkillID, isNewAdd=True)
RefreshBuffEffect(turnFight, batObj, buff, buffSkill, buffOwner, refreshType=1)
+
+ #受控时
+ if curBuffState and IsControlledHardState(curBuffState):
+ TurnPassive.OnTriggerPassiveEffect(turnFight, batObj, ChConfig.TriggerWay_BeControlledHard, tagObj=buffOwner, connSkill=buffSkill, connBuff=buff)
+
return buff
+def IsControlledHardState(state):
+ stateGroup = "1"
+ buffStateGroupDict = IpyGameDataPY.GetFuncEvalCfg("BuffStateGroup", 1, {})
+ if stateGroup not in buffStateGroupDict:
+ return
+ return state in buffStateGroupDict[stateGroup]
+
+
def RefreshBuffEffect(turnFight, batObj, curBuff, buffSkill=None, buffOwner=None, refreshType=0):
## 刷新buff效果
# @param buffSkill: 添加该buff时对应的buff技能ID,可能为None,如非添加时的刷新
--
Gitblit v1.8.0