1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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