| #!/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])  | 
|       | 
|      |