private void OnPossibleToInterrupt(Obj_AI_Hero unit, InterruptableSpell spell) { if (Player.IsDead || !GetValue <bool>("Interrupt", "Q") || !GetValue <bool>("Interrupt", unit.ChampionName + "_" + spell.Slot.ToString()) || !Q.CanCast(unit)) { return; } if (Q2.CastIfWillHit(unit, -1, PacketCast)) { return; } }
private void OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (Player.IsDead || !GetValue <bool>("AntiGap", "Q") || !GetValue <bool>("AntiGap", gapcloser.Sender.ChampionName + "_" + gapcloser.Slot.ToString()) || !Q.IsReady() || !Orbwalk.InAutoAttackRange(gapcloser.Sender)) { return; } if (Q2.CastIfWillHit(gapcloser.Sender, -1, PacketCast)) { return; } }