| 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
 | | #!/usr/bin/python  |  | # -*- coding: GBK -*-  |  | #  |  | ##@package  |  | #  |  | # @todo: ÏûºÄ¹Ì¶¨Ó¡¼ÇÊýÁ¿Ôö¼Ó¼¼ÄÜÉ˺¦¹Ì¶¨Öµ  |  | #  |  | # @author: Alee  |  | # @date 2019-4-26 ÏÂÎç07:46:07  |  | # @version 1.0  |  | #  |  | # @note:   |  | #  |  | #---------------------------------------------------------------------  |  | import ChConfig  |  | import PlayerControl  |  |   |  |   |  | def CheckCanHappen(attacker, defender, effect, curSkill):  |  |     if PlayerControl.GetYinjiCnt(attacker) < effect.GetEffectValue(1):  |  |         return False  |  |       |  |     # 4092 ´¦ÀíÏûºÄ  |  |     #PlayerYinji.SubYinji(attacker, effect.GetEffectValue(1))  |  |     return True  |  |       |  |   |  | def GetValue(attacker, defender, effect):  |  |     return effect.GetEffectValue(0)  | 
 |