Пример #1
0
 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;
     }
 }
Пример #2
0
 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;
     }
 }