Example #1
0
        private static void OnInteruppt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            var use = GetBool("useqint", typeof (bool));
            var dangerlevel = GetValue("interruptlevel");
            if (!use) return;

            if (!sender.IsChampion() || !sender.IsEnemy) return;
            if (!(sender.Distance(Player) < Q.Range)) return;
            if (DangerLevel(args) < dangerlevel) return;

            if (Q.IsReady())
                Q.Cast(sender);
        }