Exemple #1
0
        private static void CustomAntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!gapcloser.Sender.IsValidTarget())
            {
                return;
            }

            if (Menu.Item("QGapcloser").IsActive() && Q.CanCast(gapcloser.Sender))
            {
                Q.Cast(gapcloser.Sender);
            }

            if (Menu.Item("WGapcloser").IsActive() && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender))
            {
            }
        }
Exemple #2
0
        private static void CustomAntiGapcloser_OnEnemyGapcloser(TreeLib.Core.ActiveGapcloser gapcloser)
        {
            if (!gapcloser.Sender.LSIsValidTarget())
            {
                return;
            }

            if (getCheckBoxItem(qMenu, "QGapcloser") && Q.CanCast(gapcloser.Sender))
            {
                Q.Cast(gapcloser.Sender);
            }

            if (getCheckBoxItem(wMenu, "WGapcloser") && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender))
            {
            }
        }
Exemple #3
0
        private static void CustomAntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!gapcloser.Sender.IsValidTarget())
            {
                return;
            }

            if (Menu.Item("QGapcloser").IsActive() && Q.CanCast(gapcloser.Sender))
            {
                Q.Cast(gapcloser.Sender);
            }

            if (Menu.Item("WGapcloser").IsActive() && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender)) {}
        }