| | |
| | | #---------------------------------------------------------------------
|
| | |
|
| | | import ChConfig
|
| | | import GameWorld
|
| | | import GameObj
|
| | | import ShareDefine
|
| | |
|
| | |
|
| | | def CheckCanHappen(attacker, defender, effect, curSkill):
|
| | | hurtValue = attacker.GetDictByKey(ChConfig.Def_PlayerKey_curHurtValue)
|
| | | hurtValueEx = attacker.GetDictByKey(ChConfig.Def_PlayerKey_curHurtValueEx)
|
| | | hurtValue = hurtValueEx * ShareDefine.Def_PerPointValue + hurtValue
|
| | |
|
| | | if hurtValue < GameObj.GetMaxHP(attacker)*effect.GetEffectValue(0)*1.0/ChConfig.Def_MaxRateValue:
|
| | | return False
|