| | |
| | | if not defender:
|
| | | return False
|
| | |
|
| | | if GameObj.GetPyPlayerState(defender, effect.GetEffectValue(1)):#ChConfig.Def_PlayerState_Stun):
|
| | | GameWorld.DebugLog("状态触发----%s"%effect.GetEffectValue(1))
|
| | | return True
|
| | | ownerID, ownerType = 0, 0
|
| | | if effect.GetEffectValue(2):
|
| | | ownerID, ownerType = attacker.GetID(), attacker.GetGameObjType()
|
| | | |
| | | if effect.GetEffectValue(1):
|
| | | if not GameObj.GetPyPlayerState(defender, effect.GetEffectValue(1), ownerID, ownerType):#ChConfig.Def_PlayerState_Stun):
|
| | | #GameWorld.DebugLog("状态触发----%s"%effect.GetEffectValue(1))
|
| | | return False
|
| | |
|
| | | return False
|
| | | return True
|
| | |
|
| | |
|
| | | def GetValue(attacker, defender, effect):
|
| | | return float(effect.GetEffectValue(0))/ChConfig.Def_MaxRateValue
|
| | | return effect.GetEffectValue(0)
|