hxp
2024-09-13 cb3cad30df832143250b9c0f46daeadf10977f33
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: buffÖб»¹¥»÷´¥·¢Ë¢ÐÂÊôÐÔ
#
# @author: Alee
# @date 2018-4-11 ÏÂÎç02:30:03
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
import ChConfig
import GameWorld
import SkillCommon
import BuffSkill
import PlayerControl
 
def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
    tick = GameWorld.GetGameWorld().GetTick()
    # Åжϼä¸ô
    if tick - attacker.GetDictByKey("atkRefresh4506") < passiveEffect.GetEffectValue(0):
        return
 
    attacker.SetDict("atkRefresh4506", tick)
    # Ë¢ÐÂÊôÐÔ
    playerControl = PlayerControl.PlayerControl(attacker)
    #playerControl.CalcPassiveBuffAttr()
    playerControl.RefreshPlayerAttrByBuff()
    return