hxp
2019-05-05 18a10a74bd18363b8a325044d0cec5e4838531a3
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: buff×ÔÈ»Ïûʧºó´¥·¢Ö¸¶¨¼¼ÄÜ£¨·ÅµÚÒ»¸öЧ¹ûID£©
#
# @author: Alee
# @date 2019-4-29 ÏÂÎç03:59:40
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
 
import GameWorld
import ChConfig
import GameObj
import SkillShell
 
 
 
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
    return [GameWorld.GetGameWorld().GetTick()]
 
def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick):
    if tick - curBuff.GetValue() < curSkill.GetLastTime():
        # ·Ç×ÔÈ»Ïûʧ
        return
    
    if curEffect.GetEffectValue(1):
        if not GameObj.GetPyPlayerState(curObj, curEffect.GetEffectValue(1)):
            return
        
    curObj.SetDict(ChConfig.Def_PlayerKey_SkillInDelBuff, curEffect.GetEffectValue(0)) 
    return