#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # #------------------------------------------------------------------------------- # ##@package SkillModule_11 # # @todo: ͨÓøø×Ô¼ºµÄÕÙ»½ÊÞ¼ÓBUFFµÄ¼¼ÄÜ # @author Alee # @date 2010-12-16 20:50 # @version 1.2 # # ÏêϸÃèÊö:ͨÓøø×Ô¼ºµÄÕÙ»½ÊÞ¼ÓBUFFµÄ¼¼ÄÜ # # @change: "2011-03-23 18:20" Alee Ìí¼Ó·µ»ØÖµ # @change: "2011-04-08 15:00" Alee ²ÎÊý´íÎó # @note: #--------------------------------------------------------------------- """Version = 2011-04-08 15:00""" #------------------------------------------------------------------------------ #µ¼Èë import BaseAttack import SkillCommon import BuffSkill import GameObj #------------------------------------------------------------------------------ ##ͨÓøø×Ô¼ºµÄÕÙ»½ÊÞ¼ÓBUFFµÄ¼¼ÄÜ # @param attacker ¹¥»÷ÕßʵÀý # @param defender ·ÀÊØÕßʵÀý # @param curSkill ¼¼ÄÜʵÀý # @param tick ʱ¼ä´Á # @return ·µ»ØÖµÎªÕæ, Êͷųɹ¦ # @remarks ͨÓøø×Ô¼ºµÄÕÙ»½ÊÞ¼ÓBUFFµÄ¼¼ÄÜ def UseBuff(attacker, defender, curSkill, tick, tagRoundPosX, tagRoundPosY): summonCount = attacker.GetSummonCount() for i in range(summonCount): summonNPC = attacker.GetSummonNPCAt(i) if GameObj.GetHP(summonNPC) <= 0: continue BuffSkill.DoAddBuff(summonNPC, SkillCommon.GetBuffType(curSkill), curSkill, tick) return True