hxp
2025-06-12 96c0ba31f74064e59c746921fcd1386cddf78d42
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 ÉèÖÃBUFFʱ¼ä
#
# @todo: 
# @author Alee
# @date 2011-07-01 12:40
# @version 1.0
#
# ÏêϸÃèÊö:
#------------------------------------------------------------------------------ 
"""Version = 2011-07-01 12:40"""
 
import GameWorld
import SkillCommon
import ChConfig
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param list ²ÎÊýÁбí
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, cmdlist):
    if len(cmdlist) != 2:
        return
    
    curSkill = GameWorld.GetGameData().GetSkillBySkillID(cmdlist[0])
    buffType = SkillCommon.GetBuffType(curSkill)
    buffTuple = SkillCommon.GetBuffManagerByBuffType(curPlayer, buffType)
    #ͨ¹ýÀàÐÍ»ñȡĿ±êµÄbuff¹ÜÀíÆ÷Ϊ¿Õ£¬ÔòÌø³ö
    if buffTuple == ():
        return None
    
    buffManager = buffTuple[0]
    
    curBuff = buffManager.FindBuff(cmdlist[0])
    if curBuff:
        curBuff.SetRemainTime(cmdlist[1])