From 1b3cf4e85f52ba30008b3699ceb50d3b73125e30 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 30 十二月 2025 19:30:10 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(貂蝉所有技能;增加效果6034 6035;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py                       |    8 +++++---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6034.py |   22 ++++++++++++++++++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6035.py |   19 +++++++++++++++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py                      |    4 ++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py                             |    4 +++-
 5 files changed, 53 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index aa4026d..0835bf9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -4091,10 +4091,12 @@
 PassiveEff_ImmuneControlDepBuff = 6031 # 某种buff状态层达到x时免疫减益控制效果
 PassiveEff_AddCureMultiBySkillType = 6032 # 提升治疗技能最终治疗效果(根据目标buff类型层数)
 PassiveEff_ImmuneBadBuff = 6033 # 概率免疫buff类型(免疫添加,针对减益、控制、dot类)
+PassiveEff_IgnoreSex = 6034 # 去除性别验证
+PassiveEff_AddBuffTime = 6035 # 增加buff持续时间
 
 # 被动效果ID有触发值时就返回的
 PassiveEffHappenValueList = [PassiveEff_ChangeHurtType, PassiveEff_ImmuneControlBuff, PassiveEff_MustSuperHit, PassiveEff_SkillInvalid, 
-                             PassiveEff_IgnoreShield, PassiveEff_ImmuneBadBuff]
+                             PassiveEff_IgnoreShield, PassiveEff_ImmuneBadBuff, PassiveEff_IgnoreSex]
 # 被动效果ID触发值取最大值的
 PassiveEffValueMaxList = [PassiveEff_ChangeHurtMulti]
 # 被动效果ID触发值取最小值的
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6034.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6034.py
new file mode 100644
index 0000000..719c5dd
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6034.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package Skill.PassiveTrigger.PassiveEff_6034
+#
+# @todo:去除性别验证(暂时仅对5010效果有效)
+# @author hxp
+# @date 2025-12-30
+# @version 1.0
+#
+# 详细描述: 去除性别验证(暂时仅对5010效果有效)
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2025-12-30 19:30"""
+#-------------------------------------------------------------------------------
+
+import GameWorld
+
+def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
+    GameWorld.DebugLogEx("去除性别验证")
+    return 1
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6035.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6035.py
new file mode 100644
index 0000000..dad37b5
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_6035.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package Skill.PassiveTrigger.PassiveEff_6035
+#
+# @todo:添加buff时额外增加buff持续时间
+# @author hxp
+# @date 2025-12-30
+# @version 1.0
+#
+# 详细描述: 添加buff时额外增加buff持续时间
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2025-12-30 19:30"""
+#-------------------------------------------------------------------------------
+
+def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
+    return curEffect.GetEffectValue(0)
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 ff1fc7e..4497f1d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnBuff.py
@@ -228,12 +228,14 @@
     ownerID = buffOwner.GetID()
     buffID = buff.GetBuffID()
     timing = batObj.GetTiming()
+    remainTime = buffSkill.GetLastTime()
+    remainTime += TurnPassive.GetTriggerEffectValue(turnFight, buffOwner, batObj, ChConfig.PassiveEff_AddBuffTime, buffSkill)
     
-    GameWorld.DebugLogEx("    __addNewBuff. buffID=%s,skillID=%s,ownerID=%s,relatedSkillID=%s,timing=%s", 
-                         buffID, skillID, ownerID, relatedSkillID, timing, curID)
+    GameWorld.DebugLogEx("    __addNewBuff. buffID=%s,skillID=%s,ownerID=%s,relatedSkillID=%s,timing=%s,remainTime=%s,setLayerCnt=%s", 
+                         buffID, skillID, ownerID, relatedSkillID, timing, remainTime, setLayerCnt, curID)
     buff.SetAddTiming(timing) # 武将当前在什么时机就设置为什么时机
     buff.SetOwnerID(ownerID)
-    buff.SetRemainTime(buffSkill.GetLastTime())
+    buff.SetRemainTime(remainTime)
     buff.SetLayer(setLayerCnt)
     buff.SetBuffValueList(buffValueList)
     curBuffState = buffSkill.GetCurBuffState()
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
index e8ba14f..3c7d0fc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/TurnSkill.py
@@ -1844,6 +1844,10 @@
             GameWorld.DebugLogEx("有击杀目标时该技能无效! enhanceSkillID=%s", enhanceSkillID)
             return
         
+    if checkHeroSex:
+        if TurnPassive.GetTriggerEffectValue(turnFight, curBatObj, None, ChConfig.PassiveEff_IgnoreSex, connSkillTypeID=enhanceSkillData.GetSkillTypeID(), connSkillID=enhanceSkillID):
+            checkHeroSex = 0
+            
     # 继承主技能目标
     if enhanceSkillData.GetTagAim() == ChConfig.SkillTagAim_MainSkill:
         GameWorld.DebugLogEx("继承主技能目标! enhanceSkillID=%s", enhanceSkillID)

--
Gitblit v1.8.0