| | |
| | | }
|
| | |
|
| | | #region 4094,4507 增加暴击概率
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4094, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4094, out _effectValue))
|
| | | {
|
| | | bool _vaild = true;
|
| | | if (_effectValue.value2 != 0)
|
| | |
| | | #endif
|
| | |
|
| | | #region 4528,4083 增加重击伤害
|
| | | if (skill.skillInfo.effectValue.TryGetValue(4528, out _effectValue))
|
| | |
|
| | | if (StatusMgr.Instance.TryGetSkillEffectValue(attacker.ServerInstID, 4528, out _effectValue))
|
| | | {
|
| | | bool _vaild = true;
|
| | | if (_effectValue.value2 == 1)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (_exceptSkill != null)
|
| | | {
|
| | | if (_exceptSkill.effectValue.TryGetValue(4083, out _effectValue))
|
| | | {
|
| | | bool _vaild = true;
|
| | | if (_effectValue.value2 == 1)
|
| | | {
|
| | | if (attacker.SelectTarget == null
|
| | | || attacker.SelectTarget.ServerInstID != target.ServerInstID)
|
| | | {
|
| | | _vaild = false;
|
| | | }
|
| | | }
|
| | | if (_vaild)
|
| | | {
|
| | | _superHitAdd += _effectValue.value1;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4075, out _effectValue, out _skillInfo))
|
| | | {
|
| | | float _val = (PlayerDatas.Instance.extersion.battleValEx1 - 10000) * _effectValue.value1;
|
| | | _superHitAdd += _val;
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4083, out _effectValue, out _skillInfo))
|
| | | {
|
| | | bool _vaild = true;
|
| | | if (_effectValue.value2 == 1)
|
| | | {
|
| | | if (attacker.SelectTarget == null
|
| | | || attacker.SelectTarget.ServerInstID != target.ServerInstID)
|
| | | {
|
| | | _vaild = false;
|
| | | }
|
| | | }
|
| | | if (_vaild)
|
| | | {
|
| | | _superHitAdd += _effectValue.value1;
|
| | | }
|
| | | }
|
| | | #endregion
|
| | | }
|
| | |
|
| | |
| | | attackType = (byte)HurtAttackType.Normal;
|
| | | }
|
| | |
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.ContainsKey(4092))
|
| | | if (ClientSceneManager.Instance.IsClientFightMode)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.yinjiCount > 0)
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.ContainsKey(4092))
|
| | | {
|
| | | attackType = (byte)HurtAttackType.Yinji;
|
| | | if (PlayerDatas.Instance.baseData.yinjiCount > 0)
|
| | | {
|
| | | attackType = (byte)HurtAttackType.Yinji;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|