#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
#-------------------------------------------------------------------------------
|
#
|
##@package SkillModule_27
|
#
|
# @todo: ¶ÓÎéBUFF
|
# @author Alee
|
# @date 2013-04-18 14:00
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ¶ÓÎéBUFF
|
#
|
#------------------------------------------------------------------------------
|
"""Version = 2013-04-18 14:00"""
|
#------------------------------------------------------------------------------
|
#µ¼Èë
|
import BaseAttack
|
import IPY_GameWorld
|
#------------------------------------------------------------------------------
|
##BOSSͨÓÃÇøÓòDebuff
|
# @param attacker ¹¥»÷ÕßʵÀý
|
# @param defender ·ÀÊØÕßʵÀý
|
# @param curSkill ¼¼ÄÜʵÀý
|
# @param tick ʱ¼ä´Á
|
# @return ·µ»ØÖµÎªÕæ, Êͷųɹ¦
|
# @remarks BOSSͨÓÃÇøÓòDebuff Èç¹ûµ¥ÊǼÓdebuffÔò¼¼ÄÜЧ¹û1ÖµÖеÄÌî0Ôò²»Ôì³ÉÉ˺¦
|
def UseBuff(attacker, defender, curSkill, tick, tagRoundPosX, tagRoundPosY):
|
if attacker.GetGameObjType() != IPY_GameWorld.gotPlayer:
|
return False
|
|
#ÊÍ·ÅÕßΪÖÐÐÄ
|
tagRoundPosX = attacker.GetPosX()
|
tagRoundPosY = attacker.GetPosY()
|
|
#ʹÓü¼ÄÜ
|
return BaseAttack.SkillAddAreaBuff(attacker, attacker, curSkill, tagRoundPosX,
|
tagRoundPosY, tick, True)
|
|