public InterruptableSpells(string champname, SpellSlot spellSlot, Interrupt.DangerLevel dangerlevel, bool canmove = false) { ChampionName = champname; Spellslot = spellSlot; DangerLevel = dangerlevel; CanMove = canmove; }
private static void Orbwalk(Obj_AI_Base target, Interrupt.State state) { try { if (target.IsValidTarget() && state == Interrupt.State.None && CanAttack()) { Fire_BeforeAttack(target); if (ObjectManager.Player.ChampionName != "Kalista") { LastAATick = (int)(Game.Time * 1000) + Game.Ping + 100 - (int)(ObjectManager.Player.AttackCastDelay * 1000f); var d = GetTrueAARangeTo(target) - 65; if (ObjectManager.Player.Distance(target, true) > d * d && !ObjectManager.Player.IsMelee) { LastAATick = (int)(Game.Time * 1000) + Game.Ping + 400 - (int)(ObjectManager.Player.AttackCastDelay * 1000f); } } if (!Player.IssueOrder(GameObjectOrder.AttackUnit, target)) ResetAutoAttack(); LastMoveTick = 0; _lastTarget = target; return; } if (CanMove() && state != Interrupt.State.CanNothing) MoveTo(); } catch (Exception) { // ignored } }