Exemplo n.º 1
0
        /// <summary>
        /// 3.击中爆炸,计算伤害
        /// </summary>
        /// <param name="skill"></param>
        public void Hit(Skill skill)
        {
            DamageCondtion dmgCond = new DamageCondtion(skill,
                                                        delegate(int result)
            {
                HandleCast(skill, result);
            },
                                                        EventsType.Skill_DamageEnd, skill.Caster.m_Id);
            Task dmgTask = new Task("伤害检查", dmgCond);

            m_tm.AddTask(dmgTask);
            //启动任务队列
            m_tm.Start("吟唱任务");
        }
Exemplo n.º 2
0
        public void Fire03(Skill skill)
        {
            //伤害计算
            DamageCondtion dmgCond = new DamageCondtion(skill,
                                                        delegate(int result)
            {
                HandleCast(skill, result);
            },
                                                        EventsType.Skill_DamageEnd, skill.Caster.m_Id);

            TaskSystem.Task dmgTask = new TaskSystem.Task("伤害检查" + skill.Attribute.Name, dmgCond);
            m_tm.AddTask(dmgTask);
            //启动任务队列
            m_tm.Start("技能伤害计算流程" + skill.Attribute.Name);
        }