#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
#-------------------------------------------------------------------------------
|
#
|
##@package SkillModule_19
|
#
|
# @todo: ¾ù·ÖÉ˺¦ÈºÌ巶Χ¹¥»÷Ä£°å
|
# @author zhangd
|
# @date 2011-07-15 18:00
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ¾ù·ÖÉ˺¦ÈºÌ巶Χ¹¥»÷Ä£°å
|
#
|
#------------------------------------------------------------------------------
|
import GameWorld
|
"""Version = 2011-07-15 18:00"""
|
#------------------------------------------------------------------------------
|
#µ¼Èë
|
import ChConfig
|
import BaseAttack
|
#---------------------------------------------------------------------
|
##ȺÌ巶Χ¹¥»÷
|
# @param attacker ¹¥»÷ÕßʵÀý
|
# @param defender ·ÀÊØÕßʵÀý
|
# @param curSkill ¼¼ÄÜʵÀý
|
# @param tagRoundPosX ÇøÓò×ø±êX
|
# @param tagRoundPosY ÇøÓò×ø±êY
|
# @param isEnhanceSkill ÊÇ·ñΪ¸½¼Ó¼¼ÄÜ
|
# @param tick ʱ¼ä´Á
|
# @return ·µ»ØÖµÎªÕæ, Êͷųɹ¦
|
# @remarks ȺÌ巶Χ¹¥»÷
|
def UseSkill(attacker, defender, curSkill, tagRoundPosX, tagRoundPosY, isEnhanceSkill, tick):
|
|
skillEffect = curSkill.GetEffect(0)
|
skillPer = skillEffect.GetEffectValue(0)
|
skillEnhance = skillEffect.GetEffectValue(1)
|
|
#---¹¥»÷±éÀúÆðµãÓÅÏȼ¶ 1.ÕÒÖ¸¶¨µã 2.·ÀÊØÕߣ¨°üÀ¨×Ô¼º£©---
|
if tagRoundPosX == -1 or tagRoundPosY == -1:
|
#ÆðµãÊǹ¥»÷·½£¬»¹ÊÇÊܺ¦·½£¬»¹ÊÇµãµØ
|
tagRoundPosX = defender.GetPosX()
|
tagRoundPosY = defender.GetPosY()
|
|
#ʹÓü¼ÄÜ
|
return BaseAttack.AttackerSkillAttackArea(attacker, defender, tagRoundPosX, tagRoundPosY,
|
curSkill, skillPer, skillEnhance, tick,
|
isExSkill = isEnhanceSkill, isAverageHurt = True)
|
|