| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package SkillModule_21  | 
| #  | 
| # @author jiang  | 
| # @date 2011-10-09 10:45  | 
| # @version 1.0  | 
| #  | 
| # @note: ÈºÌå°Ù·Ö±È¿ÛѪģ°å  | 
| #  | 
| #------------------------------------------------------------------------------   | 
| """Version = 2011-10-09 10:45"""  | 
| #------------------------------------------------------------------------------   | 
| import BaseAttack  | 
| import GameWorld  | 
| #------------------------------------------------------------------------------   | 
|   | 
|   | 
| #------------------------------------------------------------------------------   | 
| #Â߼ʵÏÖ  | 
| # @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()  | 
|       | 
|     #ʹÓü¼ÄÜ  | 
|     return BaseAttack.AttackerSkillAttackAreaLostHP(attacker, defender, tagRoundPosX, tagRoundPosY,   | 
|                                               curSkill, tick,  | 
|                                               isExSkill = isEnhanceSkill)  |