| 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
 | | #!/usr/bin/python  |  | # -*- coding: GBK -*-  |  | #  |  | ##@package  |  | #  |  | # @todo: ¶Ô±»¶¯¼¼ÄÜնɱµÄ¸ÅÂÊÔöÇ¿  |  | #  |  | # @author: Alee  |  | # @date 2018-10-26 ÏÂÎç03:26:26  |  | # @version 1.0  |  | #  |  | # @note:   |  | #  |  | #---------------------------------------------------------------------  |  |   |  | import GameWorld  |  | import GameObj  |  |   |  | # Ä¿±êij¸ö״̬ʱ´¥·¢  |  | def CheckCanHappen(attacker, defender, effect, curSkill):  |  |     if not defender:  |  |         return False  |  |       |  |     if GameObj.GetPyPlayerState(defender, effect.GetEffectValue(1)):#ChConfig.Def_PlayerState_Stun):  |  |         #GameWorld.DebugLog("״̬´¥·¢----%s"%effect.GetEffectValue(1))  |  |         return True  |  |       |  |     return False  |  |       |  |   |  | def GetValue(attacker, defender, effect):  |  |     return effect.GetEffectValue(0)  | 
 |