예제 #1
0
 /// <summary>
 /// 使用技能
 /// </summary>
 /// <param name="level"></param>
 /// <param name="from">使用者</param>
 /// <param name="to">目标</param>
 public void RunSkill(int level, AIBaseCtrl from, AIBaseCtrl[] to)
 {
     for (int i = 0; i < Handler.GetInvocationList().Length; i++)
     {
         var action = (EffectHandler)Handler.GetInvocationList()[i];
         action(Id, level, from, to, Effects[i]);
     }
 }
예제 #2
0
        /// <summary>
        /// 使用技能 执行技能效果 不处理伤害
        /// </summary>
        /// <param name="room">使用房间</param>
        /// <param name="from">使用者</param>
        /// <param name="to">目标</param>
        /// <returns></returns>
        public void RunSkill(RoomBase <MobaPeer> room, DtoMinion from, DtoMinion[] to)
        {
            if (Effect == null)
            {
                return;
            }

            for (int i = 0; i < Effect.GetInvocationList().Length; i++)
            {
                var action = (EffectHandler)Effect.GetInvocationList()[i];
                action(room, SkillId, from, to, Data[i]);
            }
        }