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
  | #!/usr/bin/python  
 |  # -*- coding: GBK -*-  
 |  #  
 |  # @todo: Òý±¬ÊÓÒ°µÄbuffÖÖ×Ó  
 |  #  
 |  # @author: Alee  
 |  # @date 2018-2-1 ÏÂÎç02:51:53  
 |  # @version 1.0  
 |  #  
 |  # @note:   
 |  #  
 |  #------------------------------------------------------------------------------   
 |  import ChConfig  
 |  import BaseAttack  
 |  import SkillCommon  
 |  import IPY_GameWorld  
 |  import NPCCommon  
 |  #------------------------------------------------------------------------------   
 |    
 |    
 |    
 |  def UseSkill(attacker, defender, curSkill, tagRoundPosX, tagRoundPosY, isEnhanceSkill, tick):  
 |      skillEffect = SkillCommon.GetSkillEffectByEffectID(curSkill, ChConfig.Def_Skill_Effect_BoomSeedID)  
 |      if not skillEffect:  
 |          return  
 |    
 |      seedID = skillEffect.GetEffectValue(0) # ÒªÒý±¬µÄÖÖ×ÓID  
 |      if not seedID:  
 |          return  
 |            
 |      owner = NPCCommon.GetSummonNPCOwner(IPY_GameWorld.gotPlayer, attacker)  
 |      return BaseAttack.AttackDetonateSeed(attacker, curSkill, seedID, tick, owner)  
 |    
 |    
 |  
  |