Beispiel #1
0
        public void ExecuteFrame()
        {
            if (m_skillDataInfo == null)
            {
                return;
            }

            if (m_skillDataInfo.cdType == (int)eSkillCdType.Time && m_startCd)
            {
                m_curCdTime += FSPParam.clientFrameMsTime;
                if (m_curCdTime >= m_skillDataInfo.cd)
                {
                    m_startCd = false;
                }
                m_creature.UpdateUI_CD(m_skillIndex, m_curCdTime * 0.001f, m_skillDataInfo.cd * 0.001f);
            }

            if (m_bCondiSubSkill)
            {
                m_subSkillTime += FSPParam.clientFrameMsTime;
                if (m_subSkillTime > m_subSkillMaxTime)
                {
                    m_subSkillNum = 0;
                }
            }
        }