hxp
2025-01-09 c5731326acc36a3cfc6870ddb51ce2cc86e2cdc5
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
#!/usr/bin/python
# -*- coding: GBK -*-
#
##@package
#
# @todo: ÓÐÖ¸¶¨ÕÙ»½ÊÞÏÂNPCÒþÉíÎ޵гÖÐøÐÔBUFF
#
# @author: Alee
# @date 2018-4-6 ÏÂÎç02:06:58
# @version 1.0
#
# @note: 
#
#---------------------------------------------------------------------
#µ¼Èë
import SkillCommon
import GameWorld
import ChConfig
import GameObj
 
#---------------------------------------------------------------------
#È«¾Ö±äÁ¿
#---------------------------------------------------------------------
#Âß¼­ÊµÏÖ
## ³ÖÐøÐÔBuff´¦Àí 
#  @param defender ³ÐÊÜÕß
#  @param curBuff µ±Ç°Buff
#  @param curEffect BuffЧ¹û
#  @param tick µ±Ç°Ê±¼ä
#  @return None
#  @remarks ³ÖÐøÐÔBuff´¦Àí 
def ProcessBuff(defender, curBuff, curEffect, processBuffTick, tick):
    if not SkillCommon.GetSummonCountByNPCID(defender, curEffect.GetEffectValue(0)):
        defender.SetCanAttack(True)
        curBuff.SetRemainTime(1)
        return
    
    else:
 
        defender.SetAttackTick(tick)
        if defender.GetCanAttack():
            defender.SetCanAttack(False)
    return
 
 
# Ïûʧǰ
def OnBuffDisappear(defender, curSkill, curBuff, curEffect, tick):
    defender.SetCanAttack(True)
    return
 
 
# Ïûʧǰ
def OnBuffDisappearEx(defender, curSkill, curBuff, curEffect, tick):
    defender.SetCanAttack(True)
    return