hxp
2024-10-29 328648da94a07437fc46024f3e9b7e48c2e2ae38
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
36
37
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: Ä¿±ê´¦ÓÚXX״̬Ìá¸ß¼¼ÄÜÉ˺¦¹Ì¶¨Öµ
#
# @author: Alee
# @date 2019-5-17 ÏÂÎç05:01:22
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
 
import ChConfig
import GameWorld
import GameObj
 
def CheckCanHappen(attacker, defender, effect, curSkill):
    if not defender:
        return False
    
    ownerID, ownerType = 0, 0
    if effect.GetEffectValue(2):
        ownerID, ownerType = attacker.GetID(), attacker.GetGameObjType()
        
    if effect.GetEffectValue(1):
        if not GameObj.GetPyPlayerState(defender, effect.GetEffectValue(1), ownerID, ownerType):#ChConfig.Def_PlayerState_Stun):
            #GameWorld.DebugLog("״̬´¥·¢----%s"%effect.GetEffectValue(1))
            return False
    
    return True
 
def GetValue(attacker, defender, effect):
    return effect.GetEffectValue(0)