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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Skill.PassiveTrigger.PassiveEff_6038
#
# @todo:Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨°´µÐ·½È«Ìå±¾³¡Õ½¶·ÀۼƱ»±ù¶³´ÎÊý£©
# @author hxp
# @date 2026-03-02
# @version 1.0
#
# ÏêϸÃèÊö: Ôö¼Ó±¾´Î¼¼ÄÜÍò·Ö±È£¨°´µÐ·½È«Ìå±¾³¡Õ½¶·ÀۼƱ»±ù¶³´ÎÊý£©
#
#-------------------------------------------------------------------------------
#"""Version = 2026-03-02 19:00"""
#-------------------------------------------------------------------------------
 
def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
    addPer = curEffect.GetEffectValue(0) # Ã¿²ãÔö¼ÓµÄÍò·Ö±È
    maxPer = curEffect.GetEffectValue(1) # ×î´óÔö¼ÓµÄÍò·Ö±È
    batFaction = defender.GetTFBatLineup()
    beFrozenCnt = batFaction.GetBeFrozenCnt()
    addTotal = beFrozenCnt * addPer
    if maxPer and addTotal > maxPer:
        addTotal = maxPer
    #import GameWorld
    #GameWorld.DebugLogEx("6038,addTotal=%s,beFrozenCnt=%s", addTotal, beFrozenCnt)
    return addTotal