| 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
 | | #!/usr/bin/python  |  | # -*- coding: GBK -*-  |  | #  |  | ##@package  |  | #  |  | # @todo: Ê¹Ó÷ǹ¥»÷À༼ÄܺóÔö¼ÓÓ¡¼ÇÊý, ¿ÉÔö¼ÓÔöÒæbuffÊýµÄÓ¡¼ÇÊý  |  | #  |  | # @author: Alee  |  | # @date 2019-4-26 ÏÂÎç08:20:09  |  | # @version 1.0  |  | #  |  | # @note:   |  | #  |  | #---------------------------------------------------------------------  |  |   |  | import PlayerYinji  |  |   |  | def CheckCanHappen(attacker, defender, effect, curSkill):  |  |     addCnt = effect.GetEffectValue(0)  |  |     if effect.GetEffectValue(1):  |  |         addCnt = min(attacker.GetBuffState().GetBuffCount(), effect.GetEffectValue(0))  |  |           |  |     if not addCnt:  |  |         return False  |  |       |  |     PlayerYinji.AddYinji(attacker, addCnt)  |  |           |  |     return False  | 
 |