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
| #!/usr/bin/python
| # -*- coding: GBK -*-
| #
| ##@package
| #
| # @todo: buffÖй¥»÷´¦ÓÚXX״̬µÄÄ¿±ê¸½¼Ó¼¼ÄÜÉ˺¦
| #
| # @author: Alee
| # @date 2019-5-10 ÏÂÎç03:56:42
| # @version 1.0
| #
| # @note:
| #
| #---------------------------------------------------------------------
|
| import ChConfig
| import GameObj
|
| def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
|
| ownerID, ownerType = 0, 0
| if passiveEffect.GetEffectValue(2):
| ownerID, ownerType = attacker.GetID(), attacker.GetGameObjType()
|
| if not GameObj.GetPyPlayerState(defender, passiveEffect.GetEffectValue(1), ownerID, ownerType):
| return False
|
| return True
|
|
| def GetValue(attacker, defender, passiveEffect):
| return passiveEffect.GetEffectValue(0)
|
|