1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.PassiveTrigger.PassiveEff_6004
#
# @todo:Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È
# @author hxp
# @date 2025-09-17
# @version 1.0
#
# ÏêϸÃèÊö: Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È
#
#-------------------------------------------------------------------------------
#"""Version = 2025-09-17 17:30"""
#-------------------------------------------------------------------------------
 
import BattleObj
#import GameWorld
 
def GetHappenValue(attacker, defender, curEffect, effSkill, **skillkwargs):
    checkInStateList = curEffect.GetEffectValue(1)
    if checkInStateList:
        checkMainSkillTag = curEffect.GetEffectValue(2)
        if checkMainSkillTag:
            inState = False
            objMgr = BattleObj.GetBatObjMgr()
            for tagID in attacker.GetMainTagIDList():
                tagObj = objMgr.getBatObj(tagID)
                if tagObj.CheckInState(checkInStateList):
                    inState = True
                    #GameWorld.DebugLog("Ö÷¼¼ÄܵÄÄ¿±êÔÚ״̬ÖÐ! tagID=%s,%s" % (tagID, checkInStateList))
                    break
            if not inState:
                #GameWorld.DebugLog("Ö÷¼¼ÄܵÄÄ¿±ê¶¼²»ÔÚ״̬ÖÐ! tagID=%s,%s" % (attacker.GetMainTagIDList(), checkInStateList))
                return
        else:
            if not defender.CheckInState(checkInStateList):
                return
    return curEffect.GetEffectValue(0)