#!/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) # ×î´óÔö¼ÓµÄÍò·Ö±È
|
addTotal = defender.GetBeFrozenCnt() * addPer
|
if maxPer and addTotal > maxPer:
|
addTotal = maxPer
|
#import GameWorld
|
#GameWorld.DebugLogEx("6038,addTotal=%s,defID=%s,BeFrozenCnt=%s", addTotal, defender.GetID(), defender.GetBeFrozenCnt())
|
return addTotal
|