1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: ¹¥»÷ºó¸ù¾ÝÖ¸¶¨Ó¡¼Ç±¶Êý´¥·¢¼¼ÄÜ
#
# @author: Alee
# @date 2019-4-26 ÏÂÎç08:03:44
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
import PlayerControl
 
 
def CheckCanHappen(attacker, defender, effect, curSkill):
    cnt = PlayerControl.GetYinjiCnt(attacker)
    if cnt == 0:
        return False
        
    return True if cnt%effect.GetEffectValue(0) == 0 else False