示例#1
0
        public static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
        {
            if (sender != null && sender.Owner != null && sender.Owner.IsMe && args.Slot == SpellSlot.E && (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)))
            {
                if (!(args.Target is AIHeroClient))
                {
                    args.Process = false;
                    return;
                }

                if (GetCondemnTarget(ObjectManager.Player.ServerPosition).IsValidTarget())
                {
                    if (!Shine.GetTarget(ObjectManager.Player.ServerPosition).IsValidTarget())
                    {
                        args.Process = false;
                    }
                }
            }
        }
示例#2
0
        public static Obj_AI_Base GetCondemnTarget(Vector3 fromPosition)
        {
            switch (MenuManager.CondemnMenu["Condemnmode"].Cast <Slider>().CurrentValue)
            {
            case 1:
                //VH Revolution
                return(Shine.GetTarget(fromPosition));

            case 2:
                //VH Reborn
                return(VHReborn.GetTarget(fromPosition));

            case 3:
                //Marksman / Gosu
                return(Marksman.GetTarget(fromPosition));

            case 4:
                //Shine#
                return(VHRevolution.GetTarget(fromPosition));
            }
            return(null);
        }