Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 /// <param name="args">OnStealthEventArgs <see cref="OnStealthEventArgs" /></param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     if (OnStealth != null)
     {
         OnStealth(args);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// </summary>
 /// <param name="args">OnStealthEventArgs <see cref="OnStealthEventArgs" /></param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     if (OnStealth != null)
     {
         OnStealth(args);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Attempts to fire the <see cref="OnStealth" /> event.
 /// </summary>
 /// <param name="args">OnStealthEventArgs <see cref="OnStealthEventArgs" /></param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     if (OnStealth != null)
     {
         OnStealth(MethodBase.GetCurrentMethod().DeclaringType, args);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Called when an unit goes on stealth.
        /// </summary>
        /// <param name="obj">The Event's arguments</param>
        private static void On_Stealth(OnStealthEventArgs obj)
        {
            if (!Menu.Item("enable").GetValue <bool>())
            {
                return;
            }

            if (/* obj.IsStealthed
                 * && */obj.Sender.IsEnemy &&
                obj.Sender.ServerPosition.Distance(ObjectManager.Player.ServerPosition) <= 600f)
            {
                var objectPosition = obj.Sender.ServerPosition;
                if (Trinket.IsOwned() && Trinket.IsReady())
                {
                    var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f);
                    Trinket.Cast(extend);
                    return;
                }

                if (Ward.IsOwned() && Ward.IsReady())
                {
                    var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f);
                    Ward.Cast(extend);
                    return;
                }
            }
        }
Ejemplo n.º 5
0
 /// <summary>
 ///     Attempts to fire the <see cref="OnStealth" /> event.
 /// </summary>
 /// <param name="args">OnStealthEventArgs <see cref="OnStealthEventArgs" /></param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     if (OnStealth != null)
     {
         OnStealth(MethodBase.GetCurrentMethod().DeclaringType, args);
     }
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Called when an unit goes on stealth.
        /// </summary>
        /// <param name="obj">The Event's arguments</param>
        private static void On_Stealth(OnStealthEventArgs obj)
        {
            if (!Menu.Item("enable").GetValue<bool>())
            {
                return;
            }

            if (/* obj.IsStealthed
                && */ obj.Sender.IsEnemy
                && obj.Sender.ServerPosition.Distance(ObjectManager.Player.ServerPosition) <= 600f)
            {
                var objectPosition = obj.Sender.ServerPosition;
                if (Trinket.IsOwned() && Trinket.IsReady())
                {
                    var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f);
                    Trinket.Cast(extend);
                    return;
                }

                if (Ward.IsOwned() && Ward.IsReady())
                {
                    var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f);
                    Ward.Cast(extend);
                    return;
                }
            }
        }
Ejemplo n.º 7
0
 /// <summary>
 ///     Attempts to fire the <see cref="OnStealth" /> event.
 /// </summary>
 /// <param name="args">
 ///     OnStealthEventArgs <see cref="OnStealthEventArgs" />
 /// </param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     OnStealth?.Invoke(MethodBase.GetCurrentMethod().DeclaringType, args);
 }
Ejemplo n.º 8
0
 /// <summary>
 ///     Attempts to fire the <see cref="OnStealth" /> event.
 /// </summary>
 /// <param name="args">
 ///     OnStealthEventArgs <see cref="OnStealthEventArgs" />
 /// </param>
 private static void FireOnStealth(OnStealthEventArgs args)
 {
     OnStealth?.Invoke(MethodBase.GetCurrentMethod().DeclaringType, args);
 }