private WowUnit GetPositionMouseOverUnit(Point point) { var offsetPoint = KeyboardCommandDispatcher.GetKeyboard().GetOffsetPoint(point); Cursor.Position = offsetPoint; Task.Delay(10).Wait(); var mouseOverUnit = CommandManager.GetDefault().MouseOverUnit; return ObjectManager.Units.FirstOrDefault(u => u.Guid == mouseOverUnit); }
private void InternalSkin(Point point) { _logger.Information($"Attempting to skin unit"); KeyboardCommandDispatcher.GetKeyboard().SendShiftClick(point); Task.Delay(2400).Wait(); }