#!/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
|