コード例 #1
0
ファイル: MissFortune.cs プロジェクト: soulcrash/PortAIO
        /// <summary>
        ///     Called on do-cast.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The args.</param>
        public static void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (sender.IsMe)
            {
                if (AutoAttack.IsAutoAttack(args.SData.Name))
                {
                    /// <summary>
                    ///     Initializes the orbwalkingmodes.
                    /// </summary>

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                    {
                        Logics.Weaving(sender, args);
                    }

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                    {
                        Logics.JungleClear(sender, args);
                        Logics.BuildingClear(sender, args);
                    }

                    Vars.PassiveTarget = args.Target as AttackableUnit;
                }
                else
                {
                    switch (args.SData.Name)
                    {
                    case "MissFortuneRicochetShot":
                        //case "MissFortuneRicochetShotMissile":
                        Vars.PassiveTarget = args.Target as AttackableUnit;
                        break;

                    default:
                        break;
                    }
                }
            }
        }