| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package Skill.GameBuffs.Buff_4012  | 
| #  | 
| # @todo:Ó°ÏìÍæ¼Ò״̬Ч¹û  | 
| # @author hxp  | 
| # @date 2015-3-4  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: Ó°ÏìÍæ¼Ò״̬Ч¹û  | 
| #  | 
| #---------------------------------------------------------------------  | 
| """Version = 2015-3-4 20:00"""  | 
|   | 
| import PlayerControl  | 
| import ChConfig  | 
| import PassiveBuffEffMng  | 
| import IPY_GameWorld  | 
| import GameObj  | 
| import GameWorld  | 
| import SkillCommon  | 
|   | 
| ## Ìí¼ÓBUFFºóµÄÂß¼  | 
| #  @param None  | 
| #  @return None  | 
| def DoAddBuffOver(curObj, addBuff, curEffect, tick):  | 
|     stateType = curEffect.GetEffectValue(0)  | 
|     GameObj.SetPyPlayerState(curObj, stateType, 1)  | 
|       | 
|     curObj.SetDict("CurPyPlayerState", stateType)  | 
|     PassiveBuffEffMng.OnPassiveSkillTrigger(curObj, None, None, ChConfig.TriggerType_BuffState, tick)  | 
|       | 
|     buffOwner = SkillCommon.GetBuffOwner(addBuff)  | 
|     if buffOwner:  | 
|         PassiveBuffEffMng.OnPassiveSkillTrigger(buffOwner, curObj, None, ChConfig.TriggerType_BuffState, tick)  | 
|       | 
|     return  | 
|   | 
|   | 
| ## BUFFÏûʧºó  | 
| #  @param None  | 
| #  @return None  | 
| def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick):  | 
|   | 
|     stateType = curEffect.GetEffectValue(0)  | 
|     GameObj.SetPyPlayerState(curObj, stateType, 0)  | 
|     return  | 
|       | 
|       |