Пример #1
0
    private float createDamage()
    {
        Damage pDamage = new Damage();
        if (!pDamage.autoCreateSkillDamageParam(m_pHost, m_pTarget))
        {
            return -1.0f;
        }

        if (null != pDamage)
        {
            // 使玩家承受伤害
            pDamage.setDamageHurt();
            return pDamage.getRemainTime();
        }

        return 0.0f;
    }