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
  | #!/usr/bin/python  
 |  # -*- coding: GBK -*-  
 |  #  
 |  ##@package  
 |  #  
 |  # @todo: Ôö¼Ó¼¼ÄÜ»ØÑªÐ§¹û  
 |  #  
 |  # @author: Alee  
 |  # @date 2019-5-25 ÏÂÎç03:27:44  
 |  # @version 1.0  
 |  #  
 |  # @note:   
 |  #  
 |  #---------------------------------------------------------------------  
 |    
 |  import AttackCommon  
 |    
 |  def CheckCanHappen(attacker, defender, effect, curSkill):     
 |      return True  
 |        
 |    
 |  def GetValue(attacker, defender, effect):  
 |      addCnt = 1  
 |      if effect.GetEffectValue(1):  
 |          addCnt = min(attacker.GetBuffState().GetBuffCount(), effect.GetEffectValue(2))  
 |            
 |      return effect.GetEffectValue(0)*addCnt  
 |  
  |