少年修仙传客户端代码仓库
client_Hale
2019-06-22 774627bf921ada3b1647db259d5445a0ca6bb4f2
382 技能效果值逻辑修改
1个文件已修改
51 ■■■■■ 已修改文件
Fight/Actor/Skill/AttackHandler.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/Skill/AttackHandler.cs
@@ -594,7 +594,7 @@
        }
        #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)
@@ -724,7 +724,8 @@
#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)
@@ -752,28 +753,33 @@
                }
            }
            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
        }
@@ -892,11 +898,14 @@
            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;
                }
            }
        }
    }