| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package SkillModule_28  | 
| # @todo: Áé»î  | 
|   | 
| # @author hxp  | 
| # @date 2013-09-26 15:30  | 
| # @version 1.0  | 
| # ÏêϸÃèÊö: È¡ÏûÊÍ·ÅÕß±»Ñ¡ÖУ¬X¸ñ·¶Î§ÄÚ£¬Ö®ºó¿ÉÔÙ´ÎÑ¡ÖÐ  | 
| #  | 
| #------------------------------------------------------------------------------   | 
| """Version = 2013-09-26 15:30"""  | 
| #------------------------------------------------------------------------------   | 
| import BaseAttack  | 
| #------------------------------------------------------------------------------   | 
|   | 
|   | 
| #------------------------------------------------------------------------------   | 
| #Â߼ʵÏÖ  | 
| ## ¡°´ò³ö·ÀÓùÕßѪÁ¿µÄX%¸½¼ÓYÖµ¡±ÕâÒ»ÀàÆÕͨ¹¥»÷¼¼ÄÜÀàÐÍʵÏÖÂß¼  | 
| # @param attacker ¹¥»÷ÕßʵÀý  | 
| # @param defender ·ÀÊØÕßʵÀý  | 
| # @param curSkill ¼¼ÄÜʵÀý  | 
| # @param tagRoundPosX ÇøÓò×ø±êX  | 
| # @param tagRoundPosY ÇøÓò×ø±êY  | 
| # @param isEnhanceSkill ÊÇ·ñΪ¸½¼Ó¼¼ÄÜ  | 
| # @param tick Ê±¼ä´Á  | 
| # @return ·µ»ØÖµÎªÕæ, Êͷųɹ¦  | 
| def UseSkill(attacker, defender, curSkill, tagRoundPosX, tagRoundPosY, isEnhanceSkill, tick):  | 
|   | 
|     #---¹¥»÷±éÀúÆðµãÓÅÏȼ¶ 1.ÕÒÖ¸¶¨µã 2.·ÀÊØÕߣ¨°üÀ¨×Ô¼º£©---  | 
|     if tagRoundPosX == -1 or tagRoundPosY == -1:  | 
|         #ÆðµãÊǹ¥»÷·½£¬»¹ÊÇÊܺ¦·½£¬»¹ÊÇµãµØ  | 
|         tagRoundPosX = defender.GetPosX()  | 
|         tagRoundPosY = defender.GetPosY()  | 
|       | 
|     # È¡Ïû±»Ñ¡ÖÐÂß¼  | 
|     BaseAttack.CancelAreaActioned(attacker, curSkill, tagRoundPosX, tagRoundPosY, tick)  | 
|           | 
|     #´¦Àí¼¼ÄÜ´¥·¢ºÍ¹¥»÷³É¹¦Âß¼  | 
|     return BaseAttack.DoSkillEx_AttackSucess(attacker, defender, curSkill, tick, isEnhanceSkill)  |