Ejemplo n.º 1
0
 private static void GameObject_OnDelete(GameObject sender, EventArgs args)
 {
     if (sender.Name == "Gragas_Base_Q_Ally.troy")
     {
         savedQ = null;
         Bomb   = null;
     }
 }
Ejemplo n.º 2
0
 private static void OnCreateObject(GameObject sender, EventArgs args)
 {
     if (sender.Name == "Gragas_Base_Q_Ally.troy")
     {
         savedQ = new GragasQ(sender.Position, System.Environment.TickCount);
         Bomb   = sender;
     }
 }
Ejemplo n.º 3
0
 private static void Game_ProcessSpell(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsMe)
     {
         if (args.SData.Name == "GragasQ")
         {
             if (!justQ)
             {
                 justQ  = true;
                 qPos   = args.End;
                 savedQ = new GragasQ(args.End, System.Environment.TickCount - 500);
                 LeagueSharp.Common.Utility.DelayAction.Add(500, () => justQ = false);
             }
         }
         if (args.SData.Name == "GragasE")
         {
             if (!justE)
             {
                 justE = true;
                 var dist = Player.LSDistance(args.End);
                 LeagueSharp.Common.Utility.DelayAction.Add(
                     (int)Math.Min(((dist > E.Range ? E.Range : dist) / E.Speed * 1000f), 250),
                     () => justE = false);
             }
         }
         if (args.Slot == SpellSlot.R)
         {
             if (!justR)
             {
                 justR = true;
                 rPos  = args.End;
                 LeagueSharp.Common.Utility.DelayAction.Add(
                     300, () =>
                 {
                     justR = false;
                     rPos  = Vector3.Zero;
                 });
             }
         }
     }
 }
Ejemplo n.º 4
0
 private static void OnCreateObject(GameObject sender, EventArgs args)
 {
     if (sender.Name == "Gragas_Base_Q_Ally.troy")
     {
         savedQ = new GragasQ(sender.Position, System.Environment.TickCount);
         Bomb = sender;
     }
 }
Ejemplo n.º 5
0
 private static void Game_ProcessSpell(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (sender.IsMe)
     {
         if (args.SData.Name == "GragasQ")
         {
             if (!justQ)
             {
                 justQ = true;
                 qPos = args.End;
                 savedQ = new GragasQ(args.End, System.Environment.TickCount - 500);
                 LeagueSharp.Common.Utility.DelayAction.Add(500, () => justQ = false);
             }
         }
         if (args.SData.Name == "GragasE")
         {
             if (!justE)
             {
                 justE = true;
                 var dist = Player.LSDistance(args.End);
                 LeagueSharp.Common.Utility.DelayAction.Add(
                     (int)Math.Min(((dist > E.Range ? E.Range : dist) / E.Speed * 1000f), 250),
                     () => justE = false);
             }
         }
         if (args.Slot == SpellSlot.R)
         {
             if (!justR)
             {
                 justR = true;
                 rPos = args.End;
                 LeagueSharp.Common.Utility.DelayAction.Add(
                     300, () =>
                     {
                         justR = false;
                         rPos = Vector3.Zero;
                     });
             }
         }
     }
 }
Ejemplo n.º 6
0
 private static void GameObject_OnDelete(GameObject sender, EventArgs args)
 {
     if (sender.Name == "Gragas_Base_Q_Ally.troy")
     {
         savedQ = null;
         Bomb = null;
     }
 }