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
  | #!/usr/bin/python  
 |  # -*- coding: GBK -*-  
 |  #  
 |  ##@package  
 |  #  
 |  # @todo: ÏûºÄÓ¡¼ÇÊͷż¼ÄÜ  
 |  #  
 |  # @author: Alee  
 |  # @date 2019-6-3 ÉÏÎç11:27:01  
 |  # @version 1.0  
 |  #  
 |  # @note:   
 |  #  
 |  #---------------------------------------------------------------------  
 |  import ChConfig  
 |  import GameWorld  
 |  import GameObj  
 |  import PlayerControl  
 |    
 |    
 |  def CheckCanHappen(attacker, defender, effect, curSkill):  
 |      if PlayerControl.GetYinjiCnt(attacker) < effect.GetEffectValue(0):  
 |          return False  
 |        
 |      # 4092 ´¦ÀíÏûºÄ  
 |      return True 
 |  
  |