Ejemplo n.º 1
0
        private void BeHitCallback(CharHandler charHandler, CharHandler aimHandler)
        {
            float hurt;

            if (BattleEnum.Enum_CharType.Monster == charHandler.m_CharData.m_eType)
            {
                hurt = BattleCalculate.MonsterNormalHurt(charHandler.m_CharData, aimHandler.m_CharData);
            }
            else
            {
                hurt = BattleCalculate.HeroNormalHurt(charHandler.m_CharData, aimHandler.m_CharData);
            }

            hurt = ChangeProperty.RatioCoefficient(hurt, SkillEnum.SkillKind.Force, charHandler, aimHandler);
            aimHandler.BeHit(hurt, charHandler);
        }