wangguan
2020-12-11 c0b61bfa55861463b05a332010aedb02695d2526
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * 13.增加水精灵冰冻伤害
 * @Author: chenxin
 * @Date: 2020-12-05 16:26:52
 */
namespace KTGMGemClient
{
    public class FrostDamageAdd : EndlessBuff
    {
        /// <summary>
        /// 获得冰冻伤害增加(千分比)
        /// </summary>
        /// <param name="elfId"></param>
        /// <returns></returns>
        public float GetFrostDamageAdd(int elfId)
        {
            float ret = 0f;
 
            for (int i = 0; i < BuffList.Count; ++i)
            {
                if (!IsEffective(BuffList[i], elfId)) continue;
 
                ret += BuffList[i].Config.buff_effect[1] / 1000f;
            }
 
            return ret;
        }
    }
}