From 24bac6db1ab91c1c81322bc94b033a753c4394c8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 30 一月 2026 17:06:50 +0800
Subject: [PATCH] 412 【挑战】定军阁-服务端(修复开启自动一键选择时如果只剩下当前未选择的时候无法自动选择的bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5510.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5510.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5510.py
index ae3f26e..f887e7e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5510.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5510.py
@@ -16,15 +16,20 @@
#-------------------------------------------------------------------------------
import TurnSkill
-#import GameWorld
+import GameWorld
import ChConfig
-def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill, connBuff, **kwargs):
- passiveSkillID = curEffect.GetEffectValue(0) # 技能ID,为0时释放本技能
- checkTagBuffState = curEffect.GetEffectValue(1) # 可附加验证来源处于xx状态 [状态1, 状态2, ...]
+def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill, connBuff, **kwargs):
+ rate = curEffect.GetEffectValue(0)
+ if not GameWorld.CanHappen(rate):
+ GameWorld.DebugLogEx("5510概率进行追击不触发! %s", rate)
+ return
+
+ passiveSkillID = curEffect.GetEffectValue(1) # 技能ID,为0时释放本技能
+ checkTagBuffState = curEffect.GetEffectValue(2) # 可附加验证来源处于xx状态 [状态1, 状态2, ...]
if checkTagBuffState:
if not tagObj.CheckInState(checkTagBuffState):
- #GameWorld.DebugLogEx("5510来源目标不在buff状态,无法触发! checkTagBuffState=%s", checkTagBuffState)
+ GameWorld.DebugLogEx("5510来源目标不在buff状态,无法触发! checkTagBuffState=%s", checkTagBuffState)
return
if not passiveSkillID:
--
Gitblit v1.8.0