| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
|   | 
| ##@package AddBuff  | 
| # Ìí¼ÓBuffͨ¹ý¼¼ÄÜID  | 
| #  | 
| # @author Mark  | 
| # @date 2010-4-21  | 
| # @version 1.1  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| # @change: "2013-03-27 14:10" Alee Ìí¼ÓBUFFÊÍ·ÅÕßΪGMʹÓÃÕß  | 
| #---------------------------------------------------------------------  | 
| """Version = 2013-03-27 14:10"""  | 
| #µ¼Èë  | 
| import SkillCommon  | 
| import GameWorld  | 
| import SkillShell  | 
| #---------------------------------------------------------------------  | 
| #È«¾Ö±äÁ¿  | 
| #---------------------------------------------------------------------  | 
|   | 
| #---------------------------------------------------------------------  | 
| #Â߼ʵÏÖ  | 
|   | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param msgList ²ÎÊýÁбí [addSkillID]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec( curPlayer, msgList ):  | 
|     if len( msgList ) != 1:  | 
|         Log( curPlayer, 'Ìí¼ÓBuffͨ¹ý¼¼ÄÜID ²ÎÊýΪ¼¼ÄÜID' )  | 
|         return  | 
|       | 
|     tick = GameWorld.GetGameWorld().GetTick()  | 
|     addSkillID = msgList[ 0 ]  | 
|       | 
|     curSkill = GameWorld.GetGameData().GetSkillBySkillID(addSkillID)  | 
|       | 
|     #Õâ¸ö¼¼ÄÜÊÇBuff  | 
|     if SkillCommon.IsBuff(curSkill):  | 
|         return SkillShell.__DoLogic_AddBuff(curPlayer, curPlayer, curSkill, False, tick, 0, 0)  | 
|       | 
|           | 
|       | 
|     return  | 
|   | 
| ## ¸øÓè¿Í»§¶ËDEBUGÌáʾ  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param msg logÐÅÏ¢  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def Log( curPlayer, msg ):  | 
|     GameWorld.DebugAnswer(curPlayer,  msg )  | 
|     return  |