public void OnExecute() { var unit = TargetSelector.GetTarget(2000, DamageType.Magical); if (unit != null && ObjectManager.Player.Position.Distance(unit.Position) >= AkaCore.Manager.MenuManager.TalisDistance) { AkaLib.Item.Talis.Cast(); } }