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
| #!/usr/bin/python
| # -*- coding: GBK -*-
| #
| ##@package
| #
| # @todo: ·´µ¯÷è÷ëÓÓÉíÎüÊÕµÄÉ˺¦
| #
| # @author: Alee
| # @date 2019-3-20 ÉÏÎç11:47:44
| # @version 1.0
| #
| # @note:
| #
| #---------------------------------------------------------------------
| import ChConfig
| import GameWorld
| import ItemControler
| import PlayerControl
| import PassiveBuffEffMng
|
| # Ä¿±êij¸ö״̬ʱ´¥·¢
| def CheckCanHappen(attacker, defender, effect, curSkill):
| return True if attacker.GetDictByKey(ChConfig.Def_PlayerKey_AbsorbValue) else False #ÎüÊյĵ¥´ÎÉ˺¦
|
|
| def GetValue(attacker, defender, effect):
| value = attacker.GetDictByKey(ChConfig.Def_PlayerKey_AbsorbValue)
|
| perValue = effect.GetEffectValue(0) + PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(attacker, None, None, ChConfig.TriggerType_4074PerValue)
| return value * perValue / ChConfig.Def_MaxRateValue
|
|