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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/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
    
    
def OnBuffDisappearEx(curObj, curSkill, curBuff, curEffect, tick):
 
    stateType = curEffect.GetEffectValue(0)
    GameObj.SetPyPlayerState(curObj, stateType, 0)
    return