示例#1
0
        public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
        {
            if (!sender.IsMe)
            {
                return;
            }

            // Game.PrintChat(arg.SData.Name);

            if (Config.Item("forceQE").GetValue <bool>() && sender.IsMe && arg.SData.Name.Contains("RivenFeint") && Riven.Q.IsReady() && LXOrbwalker.GetPossibleTarget() != null)
            {
                Console.WriteLine("force q");
                Riven.Q.Cast(LXOrbwalker.GetPossibleTarget().Position);
                Riven.forceQ = true;
                // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite);
            }

            if (arg.SData.Name.Contains("RivenFeint") || arg.SData.Name.Contains("TriCleave") || arg.SData.Name.Contains("RivenFMartyr"))
            {
                Utility.DelayAction.Add(Game.Ping + LXOrbwalker.GetCurrentWindupTime() + 50, delegate { Riven.cancelAnim(true); });
            }

            if (arg.SData.Name.Contains("RivenFeint") && Riven.R.IsReady() && Config.Item("useR").GetValue <bool>())
            {
                Utility.DelayAction.Add(Game.Ping + 50, delegate { Riven.useRSmart(LXOrbwalker.GetPossibleTarget()); });
            }
        }
示例#2
0
 /// <summary>
 /// Called when a spell cast is processed by the client.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="LeagueSharp.GameObjectProcessSpellCastEventArgs"/> instance containing the event data.</param>
 internal static void OnProcessSpellCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsValid && sender.Team != ObjectManager.Player.Team && args.SData.Name == "YasuoWMovingWall")
     {
         _wallCastT          = Utils.TickCount;
         _yasuoWallCastedPos = sender.ServerPosition.To2D();
     }
 }
示例#3
0
 static void OnSpellCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args)
 {
     if (args.SData.Name != "NocturneParanoia2" || !menu.Item("noct").GetValue <bool>())
     {
         return;
     }
     Packet.S2C.Ping.Encoded(new Packet.S2C.Ping.Struct(args.Target.Position.X, args.Target.Position.Y, 0, 0, Packet.PingType.Danger)).Process();
 }
示例#4
0
 static void OnCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args)
 {
     if (!sender.IsMe)
     {
         return;
     }
     //Console.WriteLine(args.SData.Name + " was sent on " + args.Target.Name+" in "+Game.Time);
 }
示例#5
0
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
     if (Config.Item("forceQE").GetValue <bool>() && sender.IsMe && arg.SData.Name.Contains("RivenFeint") && Riven.Q.IsReady() && LXOrbwalker.GetPossibleTarget() != null)
     {
         Console.WriteLine("force q");
         Riven.Q.Cast(LXOrbwalker.GetPossibleTarget().Position);
         Riven.forceQ = true;
         // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite);
     }
 }
示例#6
0
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
     // if (sender.Name.Contains("missile") || sender.Name.Contains("Minion"))
     //    return;
     //Console.WriteLine("Spell: "+sender.Name + " - " + arg.SData.SpellCastTime);
     if (arg.SData.Name.Contains("RivenBasic"))
     {
         // Riven.timer = new System.Threading.Timer(obj => { Riven.Player.IssueOrder(GameObjectOrder.MoveTo, Riven.difPos()); }, null, (long)100, System.Threading.Timeout.Infinite);
     }
     //Console.WriteLine(sender.Name + " - " + objis.SkinName);
 }
示例#7
0
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
     if (testSpells.ToList().Contains(arg.SData.Name))
     {
         LeeSin.testSpellCast = arg.End.To2D();
         Polygon pol;
         if ((pol = map.getInWhichPolygon(arg.End.To2D())) != null)
         {
             LeeSin.testSpellProj = pol.getProjOnPolygon(arg.End.To2D());
         }
     }
 }
示例#8
0
 //TODO: Remove
 static void OnCast(LeagueSharp.Obj_AI_Base sender, LeagueSharp.GameObjectProcessSpellCastEventArgs args)
 {
     if (!sender.IsEnemy)
     {
         return;
     }
     if (args.SData.Name == "TrinketTotemLvl3B" || args.SData.Name == "VisionWard" && menu.SubMenu("misc").Item("antipink").GetValue <bool>())
     {
         if (args.End.Distance(player.Position) < 1200)
         {
             Utility.DelayAction.Add(200, () => AntiPink(args.End));
         }
     }
 }
示例#9
0
 public static void OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args)
 {
     if (sender.NetworkId == Yasuo.Player.NetworkId)
     {
         if (!Config.Item("autoLevel").GetValue <bool>())
         {
             return;
         }
         if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 0)
         {
             Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq[args.NewLevel - 1].Slot);
         }
         else if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 1)
         {
             Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq2[args.NewLevel - 1].Slot);
         }
     }
 }
示例#10
0
 public static void Unit_OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args)
 {
     if (sender.IsMe)
     {
         if (!_config.Item("AutoLevel").GetValue <bool>())
         {
             return;
         }
         if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0)
         {
             _player.Spellbook.LevelUpSpell(Tiger[args.NewLevel - 1].Slot);
         }
         else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1)
         {
             _player.Spellbook.LevelUpSpell(Phoenix[args.NewLevel - 1].Slot);
         }
     }
 }
示例#11
0
        private static void OnLevelUp(LeagueSharp.Obj_AI_Base sender,
                                      LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args)
        {
            if (!sender.IsValid || !sender.IsMe)
            {
                return;
            }

            if (!_config.Item("AutoLevel").GetValue <bool>())
            {
                return;
            }
            if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0)
            {
                _player.Spellbook.LevelUpSpell((SpellSlot)tristap[args.NewLevel - 1]);
            }
            else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1)
            {
                _player.Spellbook.LevelUpSpell((SpellSlot)tristad[args.NewLevel - 1]);
            }
        }
示例#12
0
文件: TalonSharp.cs 项目: betw01/detu
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
 }
示例#13
0
 public static void OnProcessSpell(LeagueSharp.Obj_AI_Base obj, LeagueSharp.GameObjectProcessSpellCastEventArgs arg)
 {
     // if (obj.Name.Contains("Turret") || obj.Name.Contains("Minion"))
     //     return;
     // Console.WriteLine(obj.BasicAttack.Name+" -:- "+obj.SkinName);
 }
示例#14
0
 public override bool ShouldBeDead(LeagueSharp.Obj_AI_Base target, float additionalSpellDamage = 0f)
 {
     return(base.ShouldBeDead(target, TwitchE.GetRemainingPoisonDamageMinusRegeneration(target)));
 }