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
| #!/usr/bin/python
| # -*- coding: GBK -*-
| #
| ##@package
| #
| # @todo: Çå³ýÖ¸¶¨buff³É¹¦ºóÌá¸ß¼¼ÄÜÉ˺¦
| #
| # @author: Alee
| # @date 2019-5-8 ÏÂÎç02:31:07
| # @version 1.0
| #
| # @note:
| #
| #---------------------------------------------------------------------
|
| import ChConfig
| import GameWorld
| import GameObj
| import SkillCommon
|
|
| def CheckCanHappen(attacker, defender, effect, curSkill):
| findBuff = SkillCommon.FindBuffByOwner(defender, effect.GetEffectValue(0), attacker.GetID(), attacker.GetGameObjType())
| if not findBuff:
| return False
| return True
|
|
| def GetValue(attacker, defender, effect):
| findBuff = SkillCommon.FindBuffByOwner(defender, effect.GetEffectValue(1), attacker.GetID(), attacker.GetGameObjType())
| if not findBuff:
| return 0
| return effect.GetEffectValue(2)*findBuff.GetLayer()
|
|