| | |
| | | _superHitAdd += _effectValue.value1;
|
| | | }
|
| | | }
|
| | |
|
| | | if (_exceptSkill.effectValue.TryGetValue(4030, out _effectValue))
|
| | | {
|
| | | _superHit += _effectValue.value1;
|
| | | }
|
| | |
|
| | | if (_exceptSkill.effectValue.TryGetValue(4075, out _effectValue))
|
| | | {
|
| | | float _val = (PlayerDatas.Instance.extersion.battleValEx1 - 10000) * _effectValue.value1;
|
| | | _superHitAdd += _val;
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4075, out _effectValue, out _skillInfo))
|
| | | {
|
| | | float _val = (PlayerDatas.Instance.extersion.battleValEx1 - 10000) * _effectValue.value1;
|
| | | _superHitAdd += _val;
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | |
| | | ref int _aDamagePVE,
|
| | | bool _isCrit)
|
| | | {
|
| | |
|
| | |
|
| | | SkillHelper.EffectValue _effectValue;
|
| | | SkillHelper.SkillInfo _skillInfo;
|
| | |
|
| | | SkillHelper.SkillInfo _exceptSkill = null;
|
| | | if (attacker is GA_Hero)
|
| | | {
|
| | | int _exceptSkillId = 0;
|
| | |
|
| | | if (TsSkillModel.TryGetExpertSkill(skillInfo.config.SkillID, out _exceptSkillId))
|
| | | {
|
| | | _exceptSkill = SkillHelper.Instance.Get(_exceptSkillId);
|
| | | }
|
| | | }
|
| | |
|
| | | #region 伤害增加
|
| | |
|
| | |
| | |
|
| | | if (attacker is GA_Hero)
|
| | | {
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4102, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4102, out _effectValue))
|
| | | {
|
| | | int _val = _effectValue.value1;
|
| | | int _needCount = _effectValue.value2;
|
| | | bool _valid = true;
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4092, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill.effectValue.TryGetValue(4092, out _effectValue))
|
| | | {
|
| | | if (_effectValue.value2 == 0)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4086, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4086, out _effectValue))
|
| | | {
|
| | | bool _vaild = true;
|
| | | if (_effectValue.value3 == 1)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4087, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4087, out _effectValue))
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.yinjiCount > _effectValue.value2)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4088, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4088, out _effectValue))
|
| | | {
|
| | | int _per = _effectValue.value1;
|
| | | int _needCount = _effectValue.value2;
|
| | | bool _valid = true;
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4092, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4092, out _effectValue))
|
| | | {
|
| | | if (_effectValue.value2 == 0)
|
| | | {
|
| | |
| | | _needCount = PlayerDatas.Instance.baseData.yinjiCount > _needCount ?
|
| | | _needCount : PlayerDatas.Instance.baseData.yinjiCount;
|
| | | _aAtkSkillPer += _per * _needCount;
|
| | | Debug.LogFormat("11111111111111111111");
|
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4015, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4015, out _effectValue))
|
| | | {
|
| | | if (target.ActorInfo.status4012.ContainsKey((byte)_effectValue.value2))
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4098, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4098, out _effectValue))
|
| | | {
|
| | | var _skillInfo1 = SkillHelper.Instance.Get(_effectValue.value2);
|
| | | if (_skillInfo1 != null)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4096, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4096, out _effectValue))
|
| | | {
|
| | | if (StatusMgr.Instance.IsExist(target.ServerInstID, _effectValue.value3))
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | // 4005 概率增加攻击(技能)伤害万分率
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4005, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4005, out _effectValue))
|
| | | {
|
| | | if (Random.Range(0, 10000) < _effectValue.value2)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | // 4035 增加技能伤害万分率
|
| | | if (attacker.SkillMgr.TryGetPassiveEffectValue(4035, out _effectValue, out _skillInfo))
|
| | | if (_exceptSkill != null && _exceptSkill.effectValue.TryGetValue(4035, out _effectValue))
|
| | | {
|
| | | bool _isValid = true;
|
| | | var _mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|