From 8ab0e3412c93ed16f9ecbd3f8f6c587ae681cde4 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 十二月 2025 11:38:53 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(修复满星生效卡被吞噬后无法生效新卡的bug;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5504.py |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5504.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5504.py
index 33dede7..69e08b3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5504.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveTrigger/PassiveEff_5504.py
@@ -17,17 +17,22 @@
 
 import TurnSkill
 import IpyGameDataPY
-import GameWorld
 
 def DoSkillEffectLogic(turnFight, batObj, tagObj, effSkill, curEffect, connSkill, connBuff, **kwargs):
     skillID = curEffect.GetEffectValue(0) # 技能ID,为0时释放本技能
-    checkState = curEffect.GetEffectValue(1) # 可附加验证目标处于xx状态
+    checkStateList = curEffect.GetEffectValue(1) # 可附加验证目标处于xx状态
     checkOwner = curEffect.GetEffectValue(2) # 是否只限归属自己的状态buff
     
-    if checkState:
+    if checkStateList:
         ownerID = batObj.GetID() if checkOwner else 0
-        if not tagObj.GetBuffManager().FindBuffByState(checkState, ownerID):
-            GameWorld.DebugLogEx("目标不在状态下不触发: tagID=%s,checkState=%s,ownerID=%s", tagObj.GetID(), checkState, ownerID)
+        inState = False
+        tagBuffMgr = tagObj.GetBuffManager()
+        for checkState in checkStateList:
+            if tagBuffMgr.FindBuffByState(checkState, ownerID):
+                inState = True
+                break
+        if not inState:
+            #GameWorld.DebugLogEx("目标不在状态下不触发: tagID=%s,checkStateList=%s,ownerID=%s", tagObj.GetID(), checkStateList, ownerID)
             return
         
     if not skillID:

--
Gitblit v1.8.0