hxp
2024-09-13 cb3cad30df832143250b9c0f46daeadf10977f33
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: ¼Ç¼ÃüÖиöÊý
#
# @author: Alee
# @date 2019-6-22 ÏÂÎç03:43:33
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
import BaseAttack
import ChConfig
import GameWorld
 
def CheckCanHappen(attacker, defender, effect, curSkill):
    skillHurtList = BaseAttack.GetSkillHurtList()
    cnt = 0
    for i in xrange(skillHurtList.GetHurtCount()):
        hurtObj = skillHurtList.GetHurtAt(i)
        if not hurtObj:
            continue
        if hurtObj.GetAttackType() in [ChConfig.Def_HurtType_Miss, ChConfig.Def_HurtType_Immune]:
            continue
        cnt += 1
        
    attacker.SetDict("1304HitCnt", cnt)
    GameWorld.DebugLog("1304HitCnt---%s"%cnt)
    return False
    
 
def GetValue(attacker, defender, effect):
    return 0